[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statuscheck patch..

From: Tal Danzig
Subject: Re: statuscheck patch..
Date: Wed, 18 Aug 2004 11:27:06 -0700
User-agent: Mutt/1.5.4i

* On Tue Aug 17, 2004 17:16:11 +0200, B.Hakvoort wrote:
> Hi,
> found some time and implemented the check as we discussed it. It surely
> cuts codesize! ;)
> The main check is done in /etc/mtab instead of /proc/mounts, this is
> because /etc/mtab contains real ( or followable ) names, while
> /proc/mounts can be quite cryptic. I have collected a few mtab files
> from different configs and haven't found any problem thusfar.
> NOTE: rootdevice is included in this check!

One problem with this approach is that /etc/mtab may not be up-to-date
(think read-only file system) while /proc/mounts always contains a full
list of what is mounted.  Also, on some systems /etc/mtab is a symlink
to /proc/mounts.

- Tal

Tal Danzig        |   Libranet GNU/Linux
address@hidden  |  http://libranet.com

GPG Fingerprint: 8BE6 B973 BC1C 0CA0 CEE5  4874 C741 0BD5 B3A2 5512
Public key available from subkeys.pgp.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]