diff options
author | Karol Lewandowski <k.lewandowsk@samsung.com> | 2024-01-23 12:58:00 +0100 |
---|---|---|
committer | Karol Lewandowski <k.lewandowsk@samsung.com> | 2024-01-23 12:58:00 +0100 |
commit | cbab226a74fbaaa43220dee80e8435555c6506ce (patch) | |
tree | 1bbd14ec625ea85d0bcc32232d51c1f71e2604d2 /tools/vgmknodes.c | |
parent | 44a3c2255bc480c82f34db156553a595606d8a0b (diff) | |
download | device-mapper-sandbox/klewandowski/upstream_2.03.22.tar.gz device-mapper-sandbox/klewandowski/upstream_2.03.22.tar.bz2 device-mapper-sandbox/klewandowski/upstream_2.03.22.zip |
Imported Upstream version 2.03.22upstream/libdevmapper-1.02.196upstream/2.03.22upstreamsandbox/klewandowski/upstream_2.03.22
Diffstat (limited to 'tools/vgmknodes.c')
-rw-r--r-- | tools/vgmknodes.c | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/tools/vgmknodes.c b/tools/vgmknodes.c index 0fd273f..9942af7 100644 --- a/tools/vgmknodes.c +++ b/tools/vgmknodes.c @@ -10,35 +10,28 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "tools.h" static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv, - void *handle __attribute__((unused))) + struct processing_handle *handle __attribute__((unused))) { - if (arg_count(cmd, refresh_ARG) && lv_is_visible(lv)) - if (!lv_refresh(cmd, lv)) { - stack; - return ECMD_FAILED; - } + if (arg_is_set(cmd, refresh_ARG) && lv_is_visible(lv)) + if (!lv_refresh(cmd, lv)) + return_ECMD_FAILED; - if (!lv_mknodes(cmd, lv)) { - stack; - return ECMD_FAILED; - } + if (!lv_mknodes(cmd, lv)) + return_ECMD_FAILED; return ECMD_PROCESSED; } int vgmknodes(struct cmd_context *cmd, int argc, char **argv) { - if (!lv_mknodes(cmd, NULL)) { - stack; - return ECMD_FAILED; - } + if (!lv_mknodes(cmd, NULL)) + return_ECMD_FAILED; - return process_each_lv(cmd, argc, argv, LCK_VG_READ, NULL, - &_vgmknodes_single); + return process_each_lv(cmd, argc, argv, NULL, NULL, LCK_VG_READ, NULL, NULL, &_vgmknodes_single); } |