Scott Call
2016-May-03 19:51 UTC
[Samba] Migration to vfs_fruit with existing AppleDouble files?
If the code to convert FinderInfo is in a version later than 4.3.6 then I can request FreeNAS update their version. Can you let me know? Thanks! -Scott On Wed, Apr 27, 2016 at 1:49 PM, Ralph Boehme <slow at samba.org> wrote:> On Wed, Apr 27, 2016 at 10:50:12AM -0700, Scott Call wrote: > > (apologies to Ralph, I replied directly to him w/o copying the lists, so > > here we go again) > > > > > > In my testing that wasn't the case. If I manually copy the apple > generated > > AppleDouble file and it's 0 byte main file to my test system, the > correct > > size (including the resource forks) are shown but the file type is not > > translated. > > > > Using "GetFileInfo" a file copied to the new (vfs_fruit) server using > > finder will show: > > type: "tfil" > > creator: "movr" > > > > but the same file with the AppleDouble copied at the unix level (scp) > from > > the old server shows: > > type: "\0\0\0\0" > > creator: "\0\0\0\0" > > > > So I think the missing piece is com.apple.FinderInfo xattr? > > hm, not sure if I convert FinderInfo from OS X AppleDouble to > vfs_fruit native (depending on fruit:metadata setting either > user.org.netatalk.metadata or iirc user.streams.AFP_FinderInfo). I > thought I added the code, but I'd have to check. > > Cheerio! > -slow >
Ralph Boehme
2016-May-03 20:22 UTC
[Samba] Migration to vfs_fruit with existing AppleDouble files?
On Tue, May 03, 2016 at 12:51:54PM -0700, Scott Call wrote:> If the code to convert FinderInfo is in a version later than 4.3.6 then I > can request FreeNAS update their version. > > Can you let me know?ad_convert() in vfs_fruit.c does the job. Looks like it should work. There's also a test for the conversion in make tes, unfortunately it doesn't check the result of converting FinderInfo. Cheerio! -slow
Scott Call
2016-May-03 20:47 UTC
[Samba] Migration to vfs_fruit with existing AppleDouble files?
Okay so that's egg on my face, I was testing as a read only user on my test server and since vfs_fruit only has the same access as the user running samba, it wasn't able to copy the finderinfo from the old ._ file into a file extattr. Once I ran it in read/write it adapted the file as expected. Sorry for wasting your time and thanks again for all of your help. On Tue, May 3, 2016 at 1:22 PM, Ralph Boehme <slow at samba.org> wrote:> On Tue, May 03, 2016 at 12:51:54PM -0700, Scott Call wrote: > > If the code to convert FinderInfo is in a version later than 4.3.6 then I > > can request FreeNAS update their version. > > > > Can you let me know? > > ad_convert() in vfs_fruit.c does the job. Looks like it should work. > > There's also a test for the conversion in make tes, unfortunately it > doesn't check the result of converting FinderInfo. > > Cheerio! > -slow >