/proc/mounts is hard to parse

Javier Kohen (jkohen@tough.com)
Thu, 2 Dec 1999 22:04:52 -0300


--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Lsof choked because of a mounted file system. It printed this message:
-
lsof: WARNING: can't stat() of file system /mnt/media/audio/Cradle
Output information may be incomplete.
-

Actually, it refered to a file system mounted like (according to mtab):
/dev/hdb4 /mnt/media/audio/Cradle\040of\040Filth ext2 rw 0 0
But lsof reads (and tries to parse) /proc/mounts, that reports the file sys=
tems mounted as:
/dev/hdb4 /mnt/media/audio/Cradle of Filth ext2 rw 0 0

Like lsof, other programs might be unable to parse this information. If thi=
s file is supposed to be computer parsed, the separators should be changed =
to something else, or the spaces in a filed escaped like in /etc/{fstab,mta=
b}.

--=20
Javier Kohen <jkohen@tough.com>
ICQ #2361802 [The_Crusher]

http://www.mundo21.com/~jkohen/
http://members.xoom.com/jkohen/

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/IT d--- s: a18 C++$ UL++++$ P++ L++ E W++ N o K- w O M- V?
PS+++ PE-- Y+ PGP+++ t+ 5-- X R tv b+ DI D+ G e->e h! r++ y*
------END GEEK CODE BLOCK------

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4Rxc0ZKpl/bHMA6oRAbepAKDijSKPdqBo4D0we8vjRo88owYanwCeNmvA
iDcYdpomOgXiuJkp7bLR2WY=
=ejQv
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/