Home | History | Annotate | Line # | Download | only in tools
args.h revision 1.1.1.1
      1 /*	$NetBSD: args.h,v 1.1.1.1 2008/12/22 00:18:58 haad Exp $	*/
      2 
      3 /*
      4  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
      5  * Copyright (C) 2004-2007 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 /*
     19  * Put all long args that don't have a
     20  * corresponding short option first ...
     21  */
     22 /* *INDENT-OFF* */
     23 arg(version_ARG, '\0', "version", NULL, 0)
     24 arg(quiet_ARG, '\0', "quiet", NULL, 0)
     25 arg(physicalvolumesize_ARG, '\0', "setphysicalvolumesize", size_mb_arg, 0)
     26 arg(ignorelockingfailure_ARG, '\0', "ignorelockingfailure", NULL, 0)
     27 arg(nolocking_ARG, '\0', "nolocking", NULL, 0)
     28 arg(metadatacopies_ARG, '\0', "metadatacopies", int_arg, 0)
     29 arg(metadatasize_ARG, '\0', "metadatasize", size_mb_arg, 0)
     30 arg(restorefile_ARG, '\0', "restorefile", string_arg, 0)
     31 arg(labelsector_ARG, '\0', "labelsector", int_arg, 0)
     32 arg(driverloaded_ARG, '\0', "driverloaded", yes_no_arg, 0)
     33 arg(aligned_ARG, '\0', "aligned", NULL, 0)
     34 arg(unbuffered_ARG, '\0', "unbuffered", NULL, 0)
     35 arg(noheadings_ARG, '\0', "noheadings", NULL, 0)
     36 arg(segments_ARG, '\0', "segments", NULL, 0)
     37 arg(units_ARG, '\0', "units", string_arg, 0)
     38 arg(nosuffix_ARG, '\0', "nosuffix", NULL, 0)
     39 arg(removemissing_ARG, '\0', "removemissing", NULL, 0)
     40 arg(abort_ARG, '\0', "abort", NULL, 0)
     41 arg(addtag_ARG, '\0', "addtag", tag_arg, 0)
     42 arg(deltag_ARG, '\0', "deltag", tag_arg, 0)
     43 arg(refresh_ARG, '\0', "refresh", NULL, 0)
     44 arg(mknodes_ARG, '\0', "mknodes", NULL, 0)
     45 arg(minor_ARG, '\0', "minor", minor_arg, 0)
     46 arg(type_ARG, '\0', "type", segtype_arg, 0)
     47 arg(alloc_ARG, '\0', "alloc", alloc_arg, 0)
     48 arg(separator_ARG, '\0', "separator", string_arg, 0)
     49 arg(mirrorsonly_ARG, '\0', "mirrorsonly", NULL, 0)
     50 arg(nosync_ARG, '\0', "nosync", NULL, 0)
     51 arg(resync_ARG, '\0', "resync", NULL, 0)
     52 arg(corelog_ARG, '\0', "corelog", NULL, 0)
     53 arg(mirrorlog_ARG, '\0', "mirrorlog", string_arg, 0)
     54 arg(monitor_ARG, '\0', "monitor", yes_no_arg, 0)
     55 arg(config_ARG, '\0', "config", string_arg, 0)
     56 arg(trustcache_ARG, '\0', "trustcache", NULL, 0)
     57 arg(ignoremonitoring_ARG, '\0', "ignoremonitoring", NULL, 0)
     58 arg(nameprefixes_ARG, '\0', "nameprefixes", NULL, 0)
     59 arg(unquoted_ARG, '\0', "unquoted", NULL, 0)
     60 arg(rows_ARG, '\0', "rows", NULL, 0)
     61 
     62 /* Allow some variations */
     63 arg(resizable_ARG, '\0', "resizable", yes_no_arg, 0)
     64 arg(allocation_ARG, '\0', "allocation", yes_no_arg, 0)
     65 
     66 /*
     67  * ... and now the short args.
     68  */
     69 arg(available_ARG, 'a', "available", yes_no_excl_arg, 0)
     70 arg(all_ARG, 'a', "all", NULL, 0)
     71 arg(autobackup_ARG, 'A', "autobackup", yes_no_arg, 0)
     72 arg(activevolumegroups_ARG, 'A', "activevolumegroups", NULL, 0)
     73 arg(background_ARG, 'b', "background", NULL, 0)
     74 arg(blockdevice_ARG, 'b', "blockdevice", NULL, 0)
     75 arg(chunksize_ARG, 'c', "chunksize", size_kb_arg, 0)
     76 arg(clustered_ARG, 'c', "clustered", yes_no_arg, 0)
     77 arg(colon_ARG, 'c', "colon", NULL, 0)
     78 arg(columns_ARG, 'C', "columns", NULL, 0)
     79 arg(contiguous_ARG, 'C', "contiguous", yes_no_arg, 0)
     80 arg(debug_ARG, 'd', "debug", NULL, ARG_REPEATABLE)
     81 arg(disk_ARG, 'D', "disk", NULL, 0)
     82 arg(exported_ARG, 'e', "exported", NULL, 0)
     83 arg(physicalextent_ARG, 'E', "physicalextent", NULL, 0)
     84 arg(file_ARG, 'f', "file", string_arg, 0)
     85 arg(force_ARG, 'f', "force", NULL, ARG_REPEATABLE)
     86 arg(full_ARG, 'f', "full", NULL, 0)
     87 arg(help_ARG, 'h', "help", NULL, 0)
     88 arg(help2_ARG, '?', "", NULL, 0)
     89 arg(stripesize_ARG, 'I', "stripesize", size_kb_arg, 0)
     90 arg(stripes_ARG, 'i', "stripes", int_arg, 0)
     91 arg(interval_ARG, 'i', "interval", int_arg, 0)
     92 arg(iop_version_ARG, 'i', "iop_version", NULL, 0)
     93 arg(logicalvolume_ARG, 'l', "logicalvolume", int_arg, 0)
     94 arg(maxlogicalvolumes_ARG, 'l', "maxlogicalvolumes", int_arg, 0)
     95 arg(extents_ARG, 'l', "extents", int_arg_with_sign_and_percent, 0)
     96 arg(lvmpartition_ARG, 'l', "lvmpartition", NULL, 0)
     97 arg(list_ARG, 'l', "list", NULL, 0)
     98 arg(size_ARG, 'L', "size", size_mb_arg, 0)
     99 arg(logicalextent_ARG, 'L', "logicalextent", int_arg_with_sign, 0)
    100 arg(persistent_ARG, 'M', "persistent", yes_no_arg, 0)
    101 arg(major_ARG, 'j', "major", major_arg, 0)
    102 arg(mirrors_ARG, 'm', "mirrors", int_arg_with_sign, 0)
    103 arg(metadatatype_ARG, 'M', "metadatatype", metadatatype_arg, 0)
    104 arg(maps_ARG, 'm', "maps", NULL, 0)
    105 arg(name_ARG, 'n', "name", string_arg, 0)
    106 arg(oldpath_ARG, 'n', "oldpath", NULL, 0)
    107 arg(nofsck_ARG, 'n', "nofsck", NULL, 0)
    108 arg(novolumegroup_ARG, 'n', "novolumegroup", NULL, 0)
    109 arg(options_ARG, 'o', "options", string_arg, 0)
    110 arg(sort_ARG, 'O', "sort", string_arg, 0)
    111 arg(permission_ARG, 'p', "permission", permission_arg, 0)
    112 arg(maxphysicalvolumes_ARG, 'p', "maxphysicalvolumes", int_arg, 0)
    113 arg(partial_ARG, 'P', "partial", NULL, 0)
    114 arg(physicalvolume_ARG, 'P', "physicalvolume", NULL, 0)
    115 arg(readahead_ARG, 'r', "readahead", readahead_arg, 0)
    116 arg(resizefs_ARG, 'r', "resizefs", NULL, 0)
    117 arg(reset_ARG, 'R', "reset", NULL, 0)
    118 arg(regionsize_ARG, 'R', "regionsize", size_mb_arg, 0)
    119 arg(physicalextentsize_ARG, 's', "physicalextentsize", size_mb_arg, 0)
    120 arg(stdin_ARG, 's', "stdin", NULL, 0)
    121 arg(snapshot_ARG, 's', "snapshot", NULL, 0)
    122 arg(short_ARG, 's', "short", NULL, 0)
    123 arg(test_ARG, 't', "test", NULL, 0)
    124 arg(uuid_ARG, 'u', "uuid", NULL, 0)
    125 arg(uuidstr_ARG, 'u', "uuid", string_arg, 0)
    126 arg(uuidlist_ARG, 'U', "uuidlist", NULL, 0)
    127 arg(verbose_ARG, 'v', "verbose", NULL, ARG_REPEATABLE)
    128 arg(volumegroup_ARG, 'V', "volumegroup", NULL, 0)
    129 arg(allocatable_ARG, 'x', "allocatable", yes_no_arg, 0)
    130 arg(resizeable_ARG, 'x', "resizeable", yes_no_arg, 0)
    131 arg(yes_ARG, 'y', "yes", NULL, 0)
    132 arg(zero_ARG, 'Z', "zero", yes_no_arg, 0)
    133 
    134 /* this should always be last */
    135 arg(ARG_COUNT, '-', "", NULL, 0)
    136 /* *INDENT-ON* */
    137