summaryrefslogtreecommitdiff
path: root/tools/vgmknodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/vgmknodes.c')
-rw-r--r--tools/vgmknodes.c27
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);
}