Date: Fri, 27 Mar 2020 23:04:23 +0300 From: Artem Kuchin <artem@artem.ru> To: freebsd-fs@freebsd.org Subject: fsdb findblk does not do anything Message-ID: <78d6f646-d981-dec4-849e-4637dba63d5f@artem.ru>
next in thread | raw e-mail | index | archive | help
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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?78d6f646-d981-dec4-849e-4637dba63d5f>