/[hurd]/hurd/utils/mount.c
ViewVC logotype

Diff of /hurd/utils/mount.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by marcus, Tue Jan 30 23:45:32 2001 UTC revision 1.3 by roland, Wed Sep 22 00:14:11 2004 UTC
# Line 1  Line 1 
1  /* Roughly Unix/Linux-compatible `mount' frontend for Hurd translators.  /* Roughly Unix/Linux-compatible `mount' frontend for Hurd translators.
2    
3     Copyright (C) 1999 Free Software Foundation, Inc.     Copyright (C) 1999, 2004 Free Software Foundation, Inc.
4    
5     This file is part of the GNU Hurd.     This file is part of the GNU Hurd.
6    
# Line 48  static const struct argp_option argp_opt Line 48  static const struct argp_option argp_opt
48    {"timeout",   'T',    "MILLISECONDS", 0, "Timeout for translator startup"},    {"timeout",   'T',    "MILLISECONDS", 0, "Timeout for translator startup"},
49    {"format",    'p',    "mount|fstab|translator", OPTION_ARG_OPTIONAL,    {"format",    'p',    "mount|fstab|translator", OPTION_ARG_OPTIONAL,
50     "Output format for query (no filesystem arguments)"},     "Output format for query (no filesystem arguments)"},
51      {"options", 'o', "OPTIONS", 0, "A `,' seperated list of options"},
52      {"readonly", 'r', 0, 0, "Never write to disk or allow opens for writing"},
53      {"writable", 'w', 0, 0, "Use normal read/write behavior"},
54      {"update", 'u', 0, 0, "Flush any meta-data cached in core"},
55      {"remount", 0, 0, OPTION_ALIAS},
56      {"verbose", 'v', 0, 0, "Give more detailed information"},
57    {0, 0}    {0, 0}
58  };  };
59    
# Line 69  parse_opt (int key, char *arg, struct ar Line 75  parse_opt (int key, char *arg, struct ar
75        break        break
76      case 'r': ARGZ (add (&options, &options_len, "ro"));      case 'r': ARGZ (add (&options, &options_len, "ro"));
77      case 'w': ARGZ (add (&options, &options_len, "rw"));      case 'w': ARGZ (add (&options, &options_len, "rw"));
78      case 'u': ARGZ (add (&options, &options_len, "remount"));      case 'u': ARGZ (add (&options, &options_len, "update"));
79      case 'o': ARGZ (add_sep (&options, &options_len, arg, ','));      case 'o': ARGZ (add_sep (&options, &options_len, arg, ','));
80      case 'v': ++verbose; break;      case 'v': ++verbose; break;
81  #undef ARGZ  #undef ARGZ

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26