Re: [PATCH 1/1] Make umounting filesystems much more paranoid.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Jul 11, 2010, at 10:34 AM, Dieter Plaetinck <dieter@xxxxxxxxxxxx> wrote:

fwiw in AIF I do something similar (see
http://github.com/Dieterbe/aif/blob/master/src/core/libs/lib-blockdevices-filesystems.sh#L457 )
(but there i use a text file containing all mountpoints)

The interesting thing is, to find the order in which you should mount
or (or umount) blockdevices can be found by doing a normal alpabetical
(reverse) sorting of the mountpoints, so i just use the sort tool.

How so? Filesystems are not mounted in any particular order, and /proc/ self/mounts lists the filesystems in the order they were mounted. Using the sort command would screw up the mount ordering, which means I would have to do more passes to properly umount things.

Dieter


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux