netatalk icon indicating copy to clipboard operation
netatalk copied to clipboard

Special AppleDouble folders not created

Open rdmark opened this issue 1 year ago • 3 comments

Additional Note on volumes: Netatalk 3.x no longer creates several "special folders", likely because they are not used by OS X. These are TheVolumeSettingsFolder, TheFindByContentFolder, "Temporary Items", and "Network Trash". None of these seem to work properly on netatalk 2.x anyway due to permissions issues (they are created as owned by root by default).

Originally posted by @NJRoadfan in https://github.com/Netatalk/netatalk/issues/220#issuecomment-2249017908

rdmark avatar Jul 28 '24 00:07 rdmark

likely because they are not used by OS X

This is almost certainly the correct answer.

I'm running Netatalk 3.x with Mac OS 9.2.2 clients and they get created, I don't remember having to chown them, and trashing stuff on the File Drop volume I use to exchange .sit files with my G4 Quicksilver seems to work just fine.

ssokolow avatar Oct 07 '24 08:10 ssokolow

In branch-netatalk-2-4 we have these declarations in etc/afpd/volume.c --

typedef struct _special_folder {
    const char *name;
    int precreate;
    mode_t mode;
    int hide;
} _special_folder;

static const _special_folder special_folders[] = {
    {"Network Trash Folder",     1,  0777,  1},
    {"Temporary Items",          1,  0777,  1},
    {".AppleDesktop",            1,  0777,  0},
#if 0
    {"TheFindByContentFolder",   0,     0,  1},
    {"TheVolumeSettingsFolder",  0,     0,  1},
#endif
    {NULL, 0, 0, 0}};

In 3.x/4.x we have special handling left only for .AppleDesktop which is put into the CNID volume dir.

rdmark avatar Jul 12 '25 19:07 rdmark

@NJRoadfan AFAICT this works correctly in 4.x.

For instance, I got this in the shared volume that has been used with an OS9 client, with global access.

drwxrwsrwx  4 atalk1 afpusers   4096 Mar  9 18:17 'Network Trash Folder'
drwxrwsrwx  3 atalk1 afpusers   4096 Feb 27 18:22  TheVolumeSettingsFolder

Is there anything missing here?

rdmark avatar Jul 12 '25 19:07 rdmark