Bug#529805: [Pkg-sysvinit-devel] Bug#529805: initscripts: umountfs: pioodl() is not the function you want.

2009-05-21 Thread Petter Reinholdtsen
[Tim Phipps] > I looks like the pioodl() function is an attempt to run "sort -r" on > /proc/mounts. I think a better purpose would be to reverse the lines > in that file. Why? What problem do you experience? > Either you can use the program /usr/bin/tac or the following: Do you have time to pro

Bug#529805: [Pkg-sysvinit-devel] Bug#529805: initscripts: umountfs: pioodl() is not the function you want

2009-06-03 Thread Tim Phipps
Here's a patch, I've tested it on my system and tried a few contrived mount scenarios and it works better than pioodl(). Here's a way to break pioodl(): mkdir -p /tmp/1/2/3 mount LABEL=disk3 /tmp/1/2/3 mount LABEL=disk2 /tmp/1/2 mount LABEL=disk1 /tmp/1 You get a /proc/mounts that looks like this