Merge lp://qastaging/~csurbhi/ubuntu/natty/mountall/mountall-stop-timer into lp://qastaging/ubuntu/natty/mountall
Status: | Needs review |
---|---|
Proposed branch: | lp://qastaging/~csurbhi/ubuntu/natty/mountall/mountall-stop-timer |
Merge into: | lp://qastaging/ubuntu/natty/mountall |
Diff against target: |
3568 lines (+3066/-60) 25 files modified
Makefile.am (+1/-1) Makefile.in (+1/-1) configure (+5/-2) configure.ac (+4/-2) dbus/Makefile.am (+4/-0) dbus/Makefile.in (+62/-11) dbus/Mountall.Server.conf (+35/-0) dbus/com.ubuntu.Mountall.Server.xml (+38/-0) dbus/mountall.h (+49/-0) debian/changelog (+26/-0) debian/initramfs/Makefile.am (+4/-0) debian/initramfs/Makefile.in (+499/-0) debian/initramfs/mountall (+69/-0) debian/initramfs/upstart-jobs/Makefile.am (+4/-0) debian/initramfs/upstart-jobs/Makefile.in (+486/-0) debian/initramfs/upstart-jobs/mountall.conf (+27/-0) src/Makefile.am (+25/-6) src/Makefile.in (+27/-7) src/control.c (+258/-0) src/control.h (+36/-0) src/mountall.c (+270/-30) src/mountall.h (+24/-0) util/Makefile.am (+56/-0) util/Makefile.in (+669/-0) util/mntctl.c (+387/-0) |
To merge this branch: | bzr merge lp://qastaging/~csurbhi/ubuntu/natty/mountall/mountall-stop-timer |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Needs Fixing | ||
Review via email:
|
Description of the change
mountall provides support to wait for some time for devices to get ready when indicated through fstab with a "timeout" option. In some cases where human interaction is needed for configuring the device, the time that mountall waits may not indicate the time that the system takes in configuring the device. While the human interaction is happening, we may want to stop the timer and then restart it when the human interaction is through.
This patch adds support to start a private mountall server and exposes interfaces to stop and restart a timer if the device mentioned is indeed tagged with a TAG_TIMEOUT. Its upto the client program to appropriately send the device name which matches with what is indicated in /etc/fstab (otherwise the timer will have no effect).
The timer is not restarted with the remaining time, but what was indicated when mountall was started. This is intentionally done because of the fact that the human interaction would anyway change the timeout really and so no client application can really wait on the exact timeout.
Also, right now there is no consideration on authentication between the client and mountall (as the system bus is not involved) However this might need to be done, especially for the case when we are not in the initramfs context.
Unmerged revisions
- 373. By Surbhi Palande
-
Added the shell execution exclamation mark to the mountall script
- 372. By Surbhi Palande
-
Removed the destination for copy_exec and the unnecessary echoes
- 371. By Surbhi Palande
-
Review fixes
- 370. By Surbhi Palande
-
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. - 369. By Surbhi Palande
-
Disconnect from the dbus server only if it was successfully connected
previously - 368. By Surbhi Palande
-
Removed the previously added term_handler for the following reasons:
1) You need to disconnect from the dbus_server and unref it only once.
This must happen when mountall finishes mounting all the filesystems. If
mountall is terminated before that then this would be because of an
erroroneous condition on which you want to shut down and so restarting the
mountall Server would not be necessary. - 367. By Surbhi Palande
-
Changed the DATA hook to SCRIPT hook to preserve the +x flag on the mountall
hook for initramfs. - 366. By Surbhi Palande
-
Changed the default mountall hook name to mountall.
- 365. By Surbhi Palande
-
Fixed the installation of upstart jobs to event-driven dir in the
/usr/share/initramfs- tools/event- driven/ - 364. By Surbhi Palande
-
Added the missing debian/
initramfs/ upstart- jobs/Makefile. am for installing the
upstart jobs related to the functioning of the event driven initramfs
I guess, this should be a merge request for Ubuntu Oneiric now. Please do consider this for the same. Thanks!