lkml.org 
[lkml]   [1999]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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]
\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.025 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site