Re: /proc/misc has bad mode

Andries.Brouwer@cwi.nl
Tue, 23 Apr 1996 14:59:47 +0200


Matthias Urlichs:

: ?r--r--r-- 1 root system 0 Apr 19 22:33 /proc/misc

: Different problem: Loopback mounts (through /dev/loop?) show as /dev/loop?
: instead of /the/real/file in /proc/mounts. Any chance of fising that? Using
: an option ("file=/somewhere/diskfile", along the lines of the "addr=foo"
: parameter NFS uses) would be OK, I guess.

Yes, /etc/mtab has
/tmp/fdimage /mnt msdos rw,loop=/dev/loop0,blocksize=1024 0 0
/dev/cdrom /cd iso9660 ro,noexec,nosuid,nodev,unhide 0 0
where /proc/mounts has
/dev/loop0 /mnt msdos rw 0 0
/dev/cdrom /cd iso9660 ro,noexec,nosuid,nodev 0 0

It follows that /proc/mounts cannot yet replace /etc/mtab -
some mount options are invisible in /proc/mounts.
Three months ago or so I submitted a correct /proc/mounttable
and /proc/swaptable, but since it was not used, I must now
leave it to others to polish /proc/mounts (and add /proc/swaps (ugh)).

Andries