If you already asked on irc and didn't get much attention I'd suggest opening the PR or asking on mailing list (though I'd personally prefer the former).
With only commands from base you could check the inum of the .viminfo by
While it's annoying to be in this situation there could be a bug that could do more harm next time.
Looking as a specific dnode (zfs inode):
If I were you I'd really like to hear devs opinion on the situation.
With only commands from base you could check the inum of the .viminfo by
ls -lai /root/
(leftmost column is the inode) and use it in conjunction with find: find /root -xdev -type f -inum $inum -exec cat {} \;
where $inum is the actual inum of the .viminfo. Most likely you get the same error as before.While it's annoying to be in this situation there could be a bug that could do more harm next time.
Looking as a specific dnode (zfs inode):
zdb -AA -ddddd $zfs_fileset $dnode
. For example:
Code:
tbsd01:(~)# ls -lai .cshrc
131270 -rw-r--r-- 1 root wheel 1089 Oct 23 2020 .cshrc
tbsd01:(~)#
tbsd01:(~)# df -m .
Filesystem 1M-blocks Used Avail Capacity Mounted on
rpool/ROOT/13.0 23759 4672 19087 20% /
tbsd01:(~)#
tbsd01:(~)# zdb -AA -ddddd rpool/ROOT/13.0 131270
Dataset rpool/ROOT/13.0 [ZPL], ID 134, cr_txg 2867566, 4.56G, 236469 objects, rootbp DVA[0]=<0:2147d7000:1000> DVA[1]=<0:5d1772000:1000> [L0 DMU objset] fletcher4 uncompressed unencrypted LE contiguous unique double size=800L/800P birth=7959118L/7959118P fill=236469 cksum=bcf813f93:e50cb1bbcab:abc520bd56894:5dfc62710b949ad
Object lvl iblk dblk dsize dnsize lsize %full type
131270 1 128K 1.50K 4K 512 1.50K 100.00 ZFS plain file
168 bonus System attributes
dnode flags: USED_BYTES USERUSED_ACCOUNTED
dnode maxblkid: 0
path /root/.cshrc
uid 0
gid 0
atime Wed Apr 14 22:10:25 2021
mtime Fri Oct 23 07:32:42 2020
ctime Wed Apr 14 22:10:25 2021
crtime Fri Oct 23 07:32:42 2020
gen 2867815
mode 100644
size 1089
parent 399
links 1
pflags 40800000004
Indirect blocks:
0 L0 0:146422000:1000 600L/600P F=1 B=2867815/2867815 cksum=571c182773:53aa538d94f5:2c446ce14b2b2b:10d0419ba49cd37e
segment [0000000000000000, 0000000000000600) size 1.50K
tbsd01:(~)#