From owner-freebsd-fs@freebsd.org Fri Mar 27 20:04:54 2020 Return-Path: Delivered-To: freebsd-fs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 636C227FD41 for ; Fri, 27 Mar 2020 20:04:54 +0000 (UTC) (envelope-from artem@artem.ru) Received: from fallback19.mail.ru (fallback19.mail.ru [185.5.136.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48pt9h49c3z47vT for ; Fri, 27 Mar 2020 20:04:39 +0000 (UTC) (envelope-from artem@artem.ru) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:To:Subject:From; bh=1SYegLgR0MGz0JkVxoka2HYjX6fcy/l2KoVj0MVQc4Q=; b=AhJfL/MFlLm3DxKMNJ5466e54HiesUlp2uJ2pUMm9Tz0T1XY4eVw847lnnuI0NhMDx6QSOspKy6TNGzm9P8GCB7danT+ZEVW1T1yAZeEZOSqUmgU1Wwwrts+UadIb7A0SRjzF/PsHsOxvgScOxdwQRZOcY323Y3yS9xrQ+Y8Evg=; Received: from [10.161.76.74] (port=60540 helo=smtp15.mail.ru) by fallback19.m.smailru.net with esmtp (envelope-from ) id 1jHvDQ-0004wh-BW for freebsd-fs@freebsd.org; Fri, 27 Mar 2020 23:04:28 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:To:Subject:From; bh=1SYegLgR0MGz0JkVxoka2HYjX6fcy/l2KoVj0MVQc4Q=; b=AhJfL/MFlLm3DxKMNJ5466e54HiesUlp2uJ2pUMm9Tz0T1XY4eVw847lnnuI0NhMDx6QSOspKy6TNGzm9P8GCB7danT+ZEVW1T1yAZeEZOSqUmgU1Wwwrts+UadIb7A0SRjzF/PsHsOxvgScOxdwQRZOcY323Y3yS9xrQ+Y8Evg=; Received: by smtp15.mail.ru with esmtpa (envelope-from ) id 1jHvDN-0003oO-6O for freebsd-fs@freebsd.org; Fri, 27 Mar 2020 23:04:25 +0300 From: Artem Kuchin Subject: fsdb findblk does not do anything To: freebsd-fs@freebsd.org Message-ID: <78d6f646-d981-dec4-849e-4637dba63d5f@artem.ru> Date: Fri, 27 Mar 2020 23:04:23 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: ru X-7564579A: B8F34718100C35BD X-77F55803: 0A44E481635329DB0E1AA8A03B392317D32E5E48865217365060145B739F5F5C37D2C72149323728F688BCB05C26794DA8C11BDB09AA8F94BB984C0AFDD2C4380ADED98AD37B51C671965D53AC3678FF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE75263010198C72082EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063710956D442BCD098F8638F802B75D45FF5571747095F342E8C7A0BC55FA0FE5FC70C65C9CC2C43AF446D199941F21D2579944EF21ECA1BA5A389733CBF5DBD5E913377AFFFEAFD269A417C69337E82CC2CC7F00164DA146DAFE8445B8C89999725571747095F342E8C26CFBAC0749D213D2E47CDBA5A9658359CC434672EE6371117882F4460429728AD0CFFFB425014E40A5AABA2AD371193AA81AA40904B5D9A18204E546F3947C8ADF99E4698B9BE82D242C3BD2E3F4C64AD6D5ED66289B52E1A3F18E62937ED6302FCEF25BFAB345725E5C173C3A84C3CF30E10DBCAF6590BA3038C0950A5D36B5C8C57E37DE458B0B4866841D68ED3522CA9DD8327EE4930A3850AC1BE2E73525A4AB119743A3B3C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-D57D3AED: Y8kq8+OzVozcFQziTi/Zi1xwo7H2ZNxGP5qz8aO2mjTJzjHGC4ogvVuzB3zfVUBtENeZ6b5av1fnCBE34JUDkWdM6QxE+Ga5d8voMtmXfSruSPhPpyWez5uf5RTkiCWD X-Mailru-Sender: 0E9E14D9EC491FBA79C5613A73A5E7B21C419CFAA70C87F4895BA4E2697807761BF68DE795CEAA2D8A4382C47DA47812C77752E0C033A69E376A1339FE8876DF1FC4F5A70058821069EB1F849E6DBC830DA7A0AF5A3A8387 X-Mras: Ok X-7564579A: EEAE043A70213CC8 X-77F55803: E8DB3678F13EF3E07F9F52485CB584D7271FD7DF62800FDCF17C890AF76C5A0621D32AB8BC0223193FB24410BF471D9EB1E2F8B8BF864A50 X-7FA49CB5: 0D63561A33F958A52C3583D2FE992946906D5943E199E959CA4B5E8ECC671FDA8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249982B42E9E729BC7B76E601842F6C81A12EF20D2F80756B5F012D6517FE479FCD76E601842F6C81A127C277FBC8AE2E8B27B7353D1E2DA0453AA81AA40904B5D99449624AB7ADAF3726B9191E2D567F0E725E5C173C3A84C3CE9959E2676FD87735872C767BF85DA2F004C906525384306FED454B719173D6462275124DF8B9C9DE2850DD75B2526BE5BFE6E7EFDEDCD789D4C264860C145E X-D57D3AED: Y8kq8+OzVozcFQziTi/Zi1xwo7H2ZNxGP5qz8aO2mjTJzjHGC4ogvVuzB3zfVUBtENeZ6b5av1fnCBE34JUDkWdM6QxE+Ga5d8voMtmXfSruSPhPpyWezwD/ql6jfy+t X-Mailru-MI: 800 X-Mailru-Sender: A5480F10D64C9005690A5AAFAD0F9BCB9E54EFD9A9145E0421D32AB8BC022319EA64C73FE6F44CDC8A4382C47DA47812C77752E0C033A69E376A1339FE8876DF1FC4F5A70058821069EB1F849E6DBC830DA7A0AF5A3A8387 X-Mras: Ok X-Rspamd-Queue-Id: 48pt9h49c3z47vT X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mail.ru header.s=mail2 header.b=AhJfL/MF; dkim=pass header.d=mail.ru header.s=mail2 header.b=AhJfL/MF; dmarc=none; spf=none (mx1.freebsd.org: domain of artem@artem.ru has no SPF policy when checking 185.5.136.251) smtp.mailfrom=artem@artem.ru X-Spamd-Result: default: False [1.34 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[mail.ru:s=mail2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[artem.ru]; NEURAL_SPAM_MEDIUM(0.43)[0.427,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.77)[ip: (3.56), ipnet: 185.5.136.0/22(0.07), asn: 47764(0.24), country: RU(0.01)]; DKIM_TRACE(0.00)[mail.ru:+]; NEURAL_SPAM_LONG(0.43)[0.433,0]; RCVD_IN_DNSWL_NONE(0.00)[251.136.5.185.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:47764, ipnet:185.5.136.0/22, country:RU]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2020 20:04:54 -0000 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?