~ubuntu-branches/ubuntu/precise/mountall/precise

« back to all changes in this revision

Viewing changes to util/mntctl.c

  • Committer: Surbhi Palande
  • Date: 2011-07-15 06:58:31 UTC
  • mto: This revision was merged to the branch mainline in revision 372.
  • Revision ID: surbhi.palande@canonical.com-20110715065831-jga2lw83obvg28e6
Changed the interface to stop/restart timers to use a mountpoint rather than
the device name. This is useful in situations where the device mentioned in
/etc/fstab is not the device used for mounting because of the change mount
device interface. The mountpoint remains constant in all cases and is also
easier to use that specifying a device with uuids for eg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
 * Commands accepts as the first non-option argument, or program name.
341
341
 **/
342
342
static NihCommand commands[] = {
343
 
        { "stop-timer", N_("DEVICE-NAME"),
 
343
        { "stop-timer", N_("MOUNTPOINT"),
344
344
          N_("Stop a timer associated with the specified device"),
345
 
          N_("DEVICE-NAME is the name of the device whose timer you want to "
346
 
             "stop so that it can become ready whenever possible"),
 
345
          N_("MOUNTPOINT is the mountpoint corresponding to a device whose "
 
346
             "timer you want to stop"),
347
347
          &timer_commands, stop_timer_options, stop_timer_action },
348
348
 
349
 
        { "restart-timer", N_("DEVICE-NAME"),
 
349
        { "restart-timer", N_("MOUNTPOINT"),
350
350
          N_("Restart a timer associated with the specified device"),
351
 
          N_("DEVICE-NAME is the name of the device which should become "
352
 
             "ready within the default wait time or the time specified "
353
 
             "explicitly as a command line argument to mountall") ,
 
351
          N_("MOUNTPOINT is the mountpoint corresponding to a device that "
 
352
             "should become ready withing the default wait time or the time "
 
353
             "specified explicitly as a command line argument to mountall") ,
354
354
          &timer_commands, restart_timer_options, restart_timer_action },
355
355
 
356
356
        { "change-mount", N_("DEVICE-NAME PATH"),