Subject: Re: fsdb print
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Al Urbaitis <avu@lanl.gov>
List: netbsd-help
Date: 11/09/2005 16:51:39
Manuel Bouyer wrote:

>On Wed, Nov 09, 2005 at 11:40:18AM -0700, Al Urbaitis wrote:
>  
>
>>Hello
>>
>>I seem to be missing something with the fsdb print command.
>>It produces a lovely formatted output like this...
>>
>>current inode: directory
>>I=2 MODE=40755 SIZE=1024
>>       MTIME=Oct  1 10:13:38 2004 [540000000 nsec]
>>       CTIME=Oct  1 10:13:38 2004 [540000000 nsec]
>>       ATIME=Nov  9 09:34:18 2005 [440000000 nsec]
>>OWNER=root GRP=wheel LINKCNT=35 FLAGS=0x0 BLKCNT=0x2 GEN=0x0
>>
>>I expected something that i would have to grep for
>>filenames and such. How do I get it to print
>>the contents of the directory file ?
>>    
>>
>
>No, 'print' just prints the properties of the inode. To get directories
>entries you can use ls (yes, this is a fsdb command too :)
>
>  
>
hmmm
I guess  I am more confused. ls lists only inodes and names of
files that are still there.
what i was looking for was "deleted" file names with the aim
of talking fsck into considering them 'found'.