zfs icon indicating copy to clipboard operation
zfs copied to clipboard

can't list a file but zfs can read it

Open eoli3n opened this issue 4 years ago • 3 comments

System information

Type Version/Name
Distribution Name FreeBSD
Distribution Version 13.0-RELEASE
Linux Kernel BSD
Architecture x86_64
ZFS Version zfs-2.0.0
SPL Version

Describe the problem you're observing

I can't list the file in a dir, but I can read it.

root@nas /d/z/s/c/s/p/Petit epeautre# file 20190120_203346.jpg
20190120_203346.jpg: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=10, manufacturer=samsung, model=SM-A320FL, orientation=upper-right, xresolution=134, yresolution=142, resolutionunit=2, software=A320FLXXS3CRK1, datetime=2019:01:20 20:33:46], baseline, precision 8, 4128x3096, components 3

root@nas /d/z/s/c/s/p/Petit epeautre# ls '20190120_203346.jpg'
20190120_203346.jpg

root@nas /d/z/s/c/s/p/Petit epeautre# ls | grep '20190120_203346.jpg'

root@nas /d/z/s/c/s/p/Petit epeautre [0|1]# rm 20190120_203346.jpg
rm: 20190120_203346.jpg: No such file or directory

Describe how to reproduce the problem

No idea.

Include any warning/errors/backtraces from the system logs

ZFS don't see the file in dir.

root@nas /d/z/s/c/s/pains# ls -di Petit\ epeautre/
2571 Petit epeautre/

root@nas /d/z/s/c/s/pains# zdb -dddd dpool/sync 2571
Dataset dpool/sync [ZPL], ID 261, cr_txg 19, 1.48G, 2176 objects, rootbp DVA[0]=<0:10356db000:1000> DVA[1]=<0:1456da6000:1000> [L0 DMU objset] fletcher4 uncompressed unencrypted LE contiguous unique double size=1000L/1000P birth=67845L/67845P fill=2176 cksum=14fe8e33a5:3912ef087092:519599d7301d80:515f9bda9b00826e

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
      2571    1   128K     6K     8K     512     6K  100.00  ZFS directory
                                               168   bonus  System attributes
	dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED 
	dnode maxblkid: 0
	uid     0
	gid     0
	atime	Sat Jun 19 17:18:21 2021
	mtime	Sat Jun 19 18:03:42 2021
	ctime	Sat Jun 19 18:44:44 2021
	crtime	Sat Jun 19 17:18:21 2021
	gen	66814
	mode	40775
	size	91
	parent	1987
	links	2
	pflags	40800000144
	microzap: 6144 bytes, 89 entries

		20190120_200054.jpg = 2144 (type: Regular File)
		20190202_162115.jpg = 2150 (type: Regular File)
		20190414_214656.jpg = 2098 (type: Regular File)
		20190120_121912.jpg = 2042 (type: Regular File)
		20190213_162925.jpg = 2106 (type: Regular File)
		20190217_164839.jpg = 2168 (type: Regular File)
		20190615_190625.jpg = 2157 (type: Regular File)
		20190317_172514.jpg = 2090 (type: Regular File)
		20190202_190150.jpg = 2111 (type: Regular File)
		20190213_171436.jpg = 2088 (type: Regular File)
		20190217_203102.jpg = 2304 (type: Regular File)
		20190213_164800.jpg = 2177 (type: Regular File)
		20190127_161133.jpg = 2152 (type: Regular File)
		20190120_164052.jpg = 2171 (type: Regular File)
		20190303_192849.jpg = 2119 (type: Regular File)
		20190224_182155.jpg = 2310 (type: Regular File)
		20190213_151535.jpg = 2438 (type: Regular File)
		20190303_200839.jpg = 2145 (type: Regular File)
		20190217_165917.jpg = 2101 (type: Regular File)
		20190213_162735.jpg = 2179 (type: Regular File)
		20190217_164704.jpg = 2046 (type: Regular File)
		20190312_224956.jpg = 2166 (type: Regular File)
		20190217_154113.jpg = 2311 (type: Regular File)
		20190213_151858.jpg = 2079 (type: Regular File)
		20190312_223323.jpg = 2434 (type: Regular File)
		20190407_165815.jpg = 2132 (type: Regular File)
		20190120_172734.jpg = 2170 (type: Regular File)
		20190213_171421.jpg = 2116 (type: Regular File)
		20190615_194204.jpg = 2141 (type: Regular File)
		20190303_205226.jpg = 2083 (type: Regular File)
		20190217_173617.jpg = 2095 (type: Regular File)
		20190407_170824.jpg = 2136 (type: Regular File)
		20190303_193442.jpg = 2161 (type: Regular File)
		20190217_154401.jpg = 2043 (type: Regular File)
		20190127_180234.jpg = 2130 (type: Regular File)
		20190202_161943.jpg = 2153 (type: Regular File)
		20190213_220903.jpg = 2108 (type: Regular File)
		20190213_163209.jpg = 2113 (type: Regular File)
		20190224_162157.jpg = 2309 (type: Regular File)
		20190407_174330.jpg = 2118 (type: Regular File)
		20190312_231752.jpg = 2080 (type: Regular File)
		20190317_171327.jpg = 2047 (type: Regular File)
		20190407_174339.jpg = 2561 (type: Regular File)
		20190303_200843.jpg = 2167 (type: Regular File)
		20190202_171612.jpg = 2135 (type: Regular File)
		20190202_162303.jpg = 2107 (type: Regular File)
		20190210_194632.jpg = 2148 (type: Regular File)
		20190120_182011.jpg = 2121 (type: Regular File)
		20190224_182207.jpg = 2076 (type: Regular File)
		20190224_173405.jpg = 2432 (type: Regular File)
		20190217_165141.jpg = 2560 (type: Regular File)
		20190224_161843.jpg = 2089 (type: Regular File)
		20190202_162843.jpg = 2138 (type: Regular File)
		20190407_170307.jpg = 2045 (type: Regular File)
		20190210_194638.jpg = 2151 (type: Regular File)
		20190414_214700(0).jpg = 2142 (type: Regular File)
		20190317_171531.jpg = 2127 (type: Regular File)
		20190312_222753.jpg = 2435 (type: Regular File)
		20190303_192426.jpg = 2178 (type: Regular File)
		20190615_194200.jpg = 2105 (type: Regular File)
		20190213_171425.jpg = 2305 (type: Regular File)
		20190312_222436.jpg = 2308 (type: Regular File)
		20190213_151842.jpg = 2436 (type: Regular File)
		20190213_220352.jpg = 2137 (type: Regular File)
		20190217_173621.jpg = 2140 (type: Regular File)
		20190213_151720.jpg = 2174 (type: Regular File)
		20190217_173628.jpg = 2124 (type: Regular File)
		20190414_214653.jpg = 2085 (type: Regular File)
		20190312_231740.jpg = 2433 (type: Regular File)
		20190414_205750.jpg = 2091 (type: Regular File)
		20190224_174446.jpg = 2087 (type: Regular File)
		20190303_200848.jpg = 2102 (type: Regular File)
		20190127_161013.jpg = 2146 (type: Regular File)
		20190217_123041.jpg = 2155 (type: Regular File)
		20190615_185634.jpg = 2103 (type: Regular File)
		20190213_162826.jpg = 2175 (type: Regular File)
		20190317_180134.jpg = 2115 (type: Regular File)
		20190224_182201.jpg = 2122 (type: Regular File)
		20190407_174335.jpg = 2092 (type: Regular File)
		20190303_192309.jpg = 2180 (type: Regular File)
		20190224_173938.jpg = 2437 (type: Regular File)
		20190120_181936.jpg = 2139 (type: Regular File)
		20190312_231748.jpg = 2128 (type: Regular File)
		20190615_194208.jpg = 2086 (type: Regular File)
		20190317_180119.jpg = 2134 (type: Regular File)
		20190217_164919.jpg = 2154 (type: Regular File)
		20190317_172052.jpg = 2164 (type: Regular File)
		20190217_154223.jpg = 2162 (type: Regular File)
		20190213_163700.jpg = 2094 (type: Regular File)

root@nas /d/z/s/c/s/pains# zdb -dddd dpool/sync 2571 | grep '20190120_203346.jpg'

root@nas /d/z/s/c/s/pains [0|1]# 

But the file exists.

root@nas /d/z/s/c/s/pains# ls -i Petit\ epeautre/20190120_203346.jpg
ls: Petit epeautre/20190120_203346.jpg: No such file or directory

root@nas /d/z/s/c/s/pains [1]# cd Petit\ epeautre/

root@nas /d/z/s/c/s/p/Petit epeautre# ls -i '20190120_203346.jpg'
2110 20190120_203346.jpg

root@nas /d/z/s/c/s/p/Petit epeautre# zdb -dddd dpool/sync 2110
Dataset dpool/sync [ZPL], ID 261, cr_txg 19, 1.48G, 2176 objects, rootbp DVA[0]=<0:10356db000:1000> DVA[1]=<0:1456da6000:1000> [L0 DMU objset] fletcher4 uncompressed unencrypted LE contiguous unique double size=1000L/1000P birth=67845L/67845P fill=2176 cksum=14fe8e33a5:3912ef087092:519599d7301d80:515f9bda9b00826e

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
      2110    2   128K   128K  3.49M     512  3.50M  100.00  ZFS plain file
                                               168   bonus  System attributes
	dnode flags: USED_BYTES USERUSED_ACCOUNTED USEROBJUSED_ACCOUNTED 
	dnode maxblkid: 27
	uid     983
	gid     0
	atime	Sun Jan 20 20:33:46 2019
	mtime	Sun Jan 20 20:33:46 2019
	ctime	Sat Jun 19 17:19:39 2021
	crtime	Sun Jan 20 20:33:46 2019
	gen	55407
	mode	100640
	size	3645617
	parent	2571
	links	0
	pflags	40800000004

eoli3n avatar Jun 19 '21 17:06 eoli3n

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 19 '22 18:06 stale[bot]

The fact that nobody talks about a problem doesn't mean that the problem is resolved. Bad bot, pchhh go away

eoli3n avatar Sep 21 '22 07:09 eoli3n

Reopening.

behlendorf avatar Sep 22 '22 00:09 behlendorf

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '23 13:10 stale[bot]