]> sourceware.org Git - lvm2.git/blame - tools/stub.h
devices: fix dev_dm_uuid
[lvm2.git] / tools / stub.h
CommitLineData
269930c0 1/*
6606c3ae 2 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
be684599 3 * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
269930c0 4 *
6606c3ae
AK
5 * This file is part of LVM2.
6 *
7 * This copyrighted material is made available to anyone wishing to use,
8 * modify, copy, or redistribute it subject to the terms and conditions
be684599 9 * of the GNU Lesser General Public License v.2.1.
6606c3ae 10 *
be684599 11 * You should have received a copy of the GNU Lesser General Public License
6606c3ae 12 * along with this program; if not, write to the Free Software Foundation,
fcbef05a 13 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
269930c0
AK
14 */
15
08f1ddea
AK
16int lvmsadc(struct cmd_context *cmd __attribute__((unused)),
17 int argc __attribute__((unused)),
18 char **argv __attribute__((unused)))
72b2cb61 19{
1cdaa814
AK
20 log_error("There's no 'lvmsadc' command in LVM2.");
21 log_error("Please use the superior 'dmstats' facilities instead.");
22 return ECMD_FAILED;
72b2cb61
AK
23}
24
08f1ddea
AK
25int lvmsar(struct cmd_context *cmd __attribute__((unused)),
26 int argc __attribute__((unused)),
27 char **argv __attribute__((unused)))
72b2cb61 28{
1cdaa814
AK
29 log_error("There's no 'lvmsar' command in LVM2.");
30 log_error("Please use the superior 'dmstats' facilities instead.");
31 return ECMD_FAILED;
72b2cb61 32}
a7617ea2 33
08f1ddea
AK
34int pvdata(struct cmd_context *cmd __attribute__((unused)),
35 int argc __attribute__((unused)),
36 char **argv __attribute__((unused)))
72b2cb61 37{
a7617ea2
AK
38 log_error("There's no 'pvdata' command in LVM2.");
39 log_error("Use lvs, pvs, vgs instead; or use vgcfgbackup and read the text file backup.");
a7617ea2
AK
40 return ECMD_FAILED;
41}
42
4f865198
AK
43int lvmchange(struct cmd_context *cmd __attribute__((unused)),
44 int argc __attribute__((unused)),
45 char **argv __attribute__((unused)))
46{
47 log_error("There's no 'lvmchange' command in LVM2.");
48 log_error("Use 'dmsetup' commands to reset the kernel device-mapper driver.");
49 return ECMD_FAILED;
50}
5fca7587
DT
51
52int vgconvert(struct cmd_context *cmd __attribute__((unused)),
53 int argc __attribute__((unused)),
54 char **argv __attribute__((unused)))
55{
56 log_error("The vgconvert command has been removed along with the lvm1 format.");
57 log_error("Use a previous version of lvm to convert the lvm1 format to lvm2.");
58 return ECMD_FAILED;
59}
This page took 0.224511 seconds and 6 git commands to generate.