Duplicated files become hidden in Finder

All your general support questions for OpenZFS on OS X.

Re: Duplicated files become hidden in Finder

Postby evereasy » Sat Apr 10, 2021 3:22 am

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,
            },
        },
    ),
)
evereasy
 
Posts: 30
Joined: Sat Feb 27, 2021 6:38 am

Re: Duplicated files become hidden in Finder

Postby lundman » Sat Apr 10, 2021 3:28 am

Updated BS and Catalina. Now you can at least SET xattrs - which will help.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Duplicated files become hidden in Finder

Postby evereasy » Sat Apr 10, 2021 5:56 pm

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
Last edited by evereasy on Sat Apr 10, 2021 7:18 pm, edited 1 time in total.
evereasy
 
Posts: 30
Joined: Sat Feb 27, 2021 6:38 am

Re: Duplicated files become hidden in Finder

Postby lundman » Sat Apr 10, 2021 6:47 pm

Thanks for reporting it! I would never have noticed :)
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Duplicated files become hidden in Finder

Postby lundman » Sun Apr 11, 2021 4:39 pm

OK there is one more xattr fix to come, rottegift found it this morning
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Duplicated files become hidden in Finder

Postby evereasy » Mon Apr 12, 2021 3:49 am

Thank you for sharing this information. I'll help to test it when you have a new build.
evereasy
 
Posts: 30
Joined: Sat Feb 27, 2021 6:38 am

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 28 guests

cron