Bug#338801: umountfs: should use /proc/mounts

2005-11-19 Thread Petter Reinholdtsen
If you understand you correctly, you want to replace /etc/mtab with /proc/mounts for umountsfs and umountnfs.sh. Here is an untested patch to do this change. Please test it, and let me know if it solves your problem. If it work, this bug should be tagged 'patch'. Index:

Bug#338801: umountfs: should use /proc/mounts

2005-11-19 Thread Thomas Hood
Petter Reinholdtsen wrote: -LANG=C sort -r -k 2 /etc/mtab | +LANG=C sort -r -k 2 /proc/mounts | Is it not necessary to unmount bind mounts too? -- Thomas Hood -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Bug#338801: umountfs: should use /proc/mounts

2005-11-19 Thread Daniel Jacobowitz
On Sat, Nov 19, 2005 at 11:17:36PM +0100, Thomas Hood wrote: Petter Reinholdtsen wrote: -LANG=C sort -r -k 2 /etc/mtab | +LANG=C sort -r -k 2 /proc/mounts | Is it not necessary to unmount bind mounts too? Bind mounts will show up in both /etc/mtab and /proc/mounts. Rbind mounts

Bug#338801: umountfs: should use /proc/mounts

2005-11-12 Thread Daniel Jacobowitz
Package: initscripts Version: 2.86.ds1-4 Severity: normal /etc/mtab isn't a reliable way to find out what is currently mounted. Not only might it contain stale entries, but also see the bug I just filed on mount, where it fails to contain sub-mounts produced by mount --rbind. As a result, if you