fsdb findblk does not do anything
Artem Kuchin
artem at artem.ru
Fri Mar 27 20:04:54 UTC 2020
I tried to see how findblk command of fsdb works
So,i did
# cd /
# ls -li
10 -rw-r----- 2 root wheel 973 Jan 13 2015 .cshrc
So, we have inode 10 for .cshrc
# istat /dev/ada2p3 10
inode: 10
Allocated
Group: 0
uid / gid: 0 / 0
mode: rrw-r-----
size: 973
num of links: 2
Inode Times:
Accessed: 2015-01-13 16:44:07 (MSK)
File Modified: 2015-01-13 16:44:07 (MSK)
Inode Modified: 2015-02-25 16:09:31 (MSK)
Direct Blocks:
5080
So,we have block5080 for this file. Letr try to find this inode by block
number
# fsdb -r /dev/ada2p3
** /dev/ada2p3 (NO WRITE)
Examining file system `/dev/ada2p3'
Last Mounted on /
current inode: directory
I=2 MODE=40755 SIZE=512
BTIME=Nov 12 00:03:46 2014 [0 nsec]
MTIME=Mar 26 10:05:49 2020 [261484000 nsec]
CTIME=Mar 26 10:05:49 2020 [261484000 nsec]
ATIME=Dec 21 06:24:59 2014 [0 nsec]
OWNER=root GRP=wheel LINKCNT=21 FLAGS=0 BLKCNT=8 GEN=465e05d4
fsdb (inum: 2)> findblk 5080
fsdb (inum: 2)>
I waiting for long time but Nothing...
Why?
More information about the freebsd-fs
mailing list