Page 4 of 4

Re: Duplicated files become hidden in Finder

PostPosted: Sat Apr 10, 2021 3:22 am
by evereasy
Regarding "xattr -xws com.apple.FinderInfo ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff $a/Presentation1.pptx", do you want to make it works the same ways as APFS? That way it is more compatible with APFS?

Code: Select all
$ xattr -c $a/Presentation1.pptx
$ xattr -wx com.apple.FinderInfo ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff $a/Presentation1.pptx
$ xattr -l $a/Presentation1.pptx
com.apple.FinderInfo:
00000000  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  |................|
00000010  FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  |................|
00000020
$ finderinfo read $a/Presentation1.pptx
Attempting to read FinderInfo from "/Users/eli/pit/Presentation1.pptx"
Ok(
    File(
        FinderInfoFile {
            file_info: FileInfo {
                fileType: Err(FromUtf8Error { bytes: [255, 255, 255, 255], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }),
                fileCreator: Err(FromUtf8Error { bytes: [255, 255, 255, 255], error: Utf8Error { valid_up_to: 0, error_len: Some(1) } }),
                finderFlags: FinderFlags {
                    raw: 65535,
                    flags: [
                        "Orange",
                        "kIsShared",
                        "kHasNoINITs",
                        "kHasBeenInited",
                        "kHasCustomIcon",
                        "kIsStationery",
                        "kNameLocked",
                        "kHasBundle",
                        "kIsInvisible",
                        "kIsAlias",
                        "kHideExtension",
                    ],
                },
                location: Point {
                    v: -1,
                    h: -1,
                },
                reservedField: 65535,
            },
            extended_file_info: ExtendedFileInfo {
                reserved1: [
                    -1,
                    -1,
                    -1,
                    -1,
                ],
                extendedFinderFlags: ExtendedFinderFlags {
                    raw: 65535,
                    flags: [
                        "kExtendedFlagsAreInvalid",
                        "kExtendedFlagHasCustomBadge",
                        "kExtendedFlagHasCustomBadge",
                    ],
                },
                reserved2: -1,
                putAwayFolderID: -1,
            },
        },
    ),
)

Re: Duplicated files become hidden in Finder

PostPosted: Sat Apr 10, 2021 3:28 am
by lundman
Updated BS and Catalina. Now you can at least SET xattrs - which will help.

Re: Duplicated files become hidden in Finder

PostPosted: Sat Apr 10, 2021 5:56 pm
by evereasy
Thank you so much for fixing it. It works!

Now I can continue to use ZFS volumes for regular daily usage.

The following tests are performed -
1. Finder, duplicate, color tag tested. OK!
2. xattr -wx tested. OK!
3. xattred update com.apple.FinderInfo to 00000000 00000000 000C0000 00000000 00000000 00000000 00000000 00000000 tested. OK!
4. PowerPoint save as tested. OK!

ZFS version tested:
Code: Select all
$ zfs version
zfs-2.0.0-rc2
zfs-kmod-zfs-2.0.0rc2-8-ga19a56217f

Re: Duplicated files become hidden in Finder

PostPosted: Sat Apr 10, 2021 6:47 pm
by lundman
Thanks for reporting it! I would never have noticed :)

Re: Duplicated files become hidden in Finder

PostPosted: Sun Apr 11, 2021 4:39 pm
by lundman
OK there is one more xattr fix to come, rottegift found it this morning

Re: Duplicated files become hidden in Finder

PostPosted: Mon Apr 12, 2021 3:49 am
by evereasy
Thank you for sharing this information. I'll help to test it when you have a new build.