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
[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
Package: initscripts
Version: 2.86.ds1-61
Severity: normal
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. Either you can use the program /usr/bin/tac or the following:
rev() {
local line
3 matches
Mail list logo