Thank you so much for investigating this issue. I redid my test with a newly created ZFS volume. The following is the steps that I performed -
1. Create an ZFS volume "tank" on an apfs volume, /Users/Space is on /dev/disk1s2 on /System/Volumes/Data (apfs, local, journaled, nobrowse)
- Code: Select all
# mkfile 1G /Users/Space/1G.raw
# zpool create tank /Users/Space/1G.raw
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
tank 960M 138K 960M - - 0% 0% 1.00x ONLINE -
2. Check current status, xattr is /usr/bin/xattr
- Code: Select all
# cd /Volumes/tank
# ls
.fseventsd
# xattr .*
..: com.apple.FinderInfo
# xattr -l .*
..: com.apple.FinderInfo:
00000000 00 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 |........@.......|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020
3. Create a file "time.txt" using vi
- Code: Select all
# vi time.txt
# xattr -l time.txt
# ls -ld .
drwxr-xr-x 4 root wheel 4 Apr 5 11:31 .
# chmod 777 .
4. Duplicate time.txt using Finder's "duplicate" function, right click "time.txt", select "duplicate"
5. Check the files with xattr
Note: There is an at sign (`
@', symbolic link) at "time copy.txt" when run ls -l.
- Code: Select all
# ls -l time*
-rw-r--r--@ 1 evereasy wheel 29 Apr 5 11:31 time copy.txt
-rw-r--r-- 1 root wheel 29 Apr 5 11:31 time.txt
# xattr time*
time copy.txt: com.apple.FinderInfo
# xattr -l time*
xattr: [Errno 34] Result too large: 'time copy.txt'
6.using xattr -c can clear out the errors
- Code: Select all
# ls -l time*
-rw-r--r--@ 1 evereasy wheel 29 Apr 5 11:31 time copy.txt
-rw-r--r-- 1 root wheel 29 Apr 5 11:31 time.txt
# xattr -l time*
xattr: [Errno 34] Result too large: 'time copy.txt'
# xattr -c time*
# xattr -l time*
# ls -l time*
-rw-r--r-- 1 evereasy wheel 29 Apr 5 11:31 time copy.txt
-rw-r--r-- 1 root wheel 29 Apr 5 11:31 time.txt
ZFS version:
- Code: Select all
# zfs version
zfs-2.0.0-rc1_442_g816946801e
zfs-kmod-zfs-2.0.0-rc1-442-g816946801e
macOS version:
- Code: Select all
# sw_vers
ProductName: macOS
ProductVersion: 11.2.3
BuildVersion: 20D91