ext2 ext3 aren't the only local filesystems, so this bug is not just
about "getting rid of the df warning".  /etc/init.d/mountall.sh does
this:

mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs -O no_netdev

I can propose the following to replace use of "df":

</proc/mounts awk '{print $2 "/lost+found"}' |sort -u |perl -ne
'chomp; s,//*,/,g; -e && print && print "\n"'

The /proc/filesystems records without "nodev" also seem relevant.
However parsing isn't as simple.

</proc/mounts grep -wF "`awk '$1!="nodev"{print $1}'
</proc/filesystems`" |perl -ne 'chomp; s/^[^ ]* //; s/ .*//; s,/*$,,;
$_.="/lost+found"; -e && print "$_\n"'



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to