Re: Pathnames in /proc

Alexander Kjeldaas (astor@guardian.no)
Tue, 23 Jun 1998 23:44:06 +0200


On Tue, Jun 23, 1998 at 07:37:28PM +0400, Savochkin Andrey Vladimirovich wrote:
>
> I've just booted a test kernel with \0 in /proc/mounts
> to see what utilities it confuses.
> I keep /etc/mtab as a link to /proc/mounts.

Just a note - how do you make that work. Last time I did that, mount
would mess up by unlinking /etc/mtab on mount, so I changed PATH_MTAB
in libc and patched mount/umount.

> Unfortunately, the change break most utilities dealing with /etc/mtab.
> The quick observation shows that getmntent() is a culprit.
> I see no solution to make /proc/mounts reliable and to not break
> many system utilities at the same time.

What about fixing glibc.

astor

-- 
 Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway
 http://www.guardian.no/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu