chiark / gitweb /
umount: Adding unmount functions to be used in shutdown
authorFabiano Fidencio <fidencio@profusion.mobi>
Thu, 7 Oct 2010 12:43:57 +0000 (05:43 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Oct 2010 17:23:26 +0000 (19:23 +0200)
commite3478379751fda30316204c68112b5a2b9ffd5a7
treeabd2d0a3241c31a2cddb4b82d88f315673f2688b
parent3846aeeba29a31628ec7a8b34884916073585e06
umount: Adding unmount functions to be used in shutdown

This functions will:
   - umount all mount points that aren't API
   - remount read-only all mount points that can't be umounted
   - umount all swap devices.
   - detach all loopback devices

TODO:
   - umount dms

Mountpoints are being read from /proc/self/mountinfo.
Swaps are being read from /proc/swaps.
Loop devices from /sys/class/block/loop*.
.gitignore
src/umount.c [new file with mode: 0644]
src/umount.h [new file with mode: 0644]