Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / lvm2 / dist / tools / stub.h
1 /*      $NetBSD: stub.h,v 1.1.1.1 2008/12/22 00:19:07 haad Exp $        */
2
3 /*
4  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.  
5  * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
6  *
7  * This file is part of LVM2.
8  *
9  * This copyrighted material is made available to anyone wishing to use,
10  * modify, copy, or redistribute it subject to the terms and conditions
11  * of the GNU Lesser General Public License v.2.1.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program; if not, write to the Free Software Foundation,
15  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16  */
17
18 #define unimplemented \
19         log_error("Command not implemented yet."); return ECMD_FAILED
20
21 /*int e2fsadm(struct cmd_context *cmd, int argc, char **argv) unimplemented*/
22 int lvmsadc(struct cmd_context *cmd __attribute((unused)),
23             int argc __attribute((unused)),
24             char **argv __attribute((unused)))
25 {
26         unimplemented;
27 }
28
29 int lvmsar(struct cmd_context *cmd __attribute((unused)),
30            int argc __attribute((unused)),
31            char **argv __attribute((unused)))
32 {
33         unimplemented;
34 }
35
36 int pvdata(struct cmd_context *cmd __attribute((unused)),
37            int argc __attribute((unused)),
38            char **argv __attribute((unused)))
39 {
40         log_error("There's no 'pvdata' command in LVM2.");
41         log_error("Use lvs, pvs, vgs instead; or use vgcfgbackup and read the text file backup.");
42         log_error("Metadata in LVM1 format can still be displayed using LVM1's pvdata command.");
43         return ECMD_FAILED;
44 }
45