Messages in this thread | | | Date | Thu, 2 Dec 1999 22:04:52 -0300 | From | Javier Kohen <> | Subject | /proc/mounts is hard to parse |
| |
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 systems 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 this 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,mtab}.
-- 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------ [unhandled content-type:application/pgp-signature]
| |