[Samba] vfs_fruit: cannot remove any file

HAT hat at fa2.so-net.ne.jp
Tue Dec 29 14:25:24 UTC 2015


Mon, 28 Dec 2015 18:24:17 +0100, Ralph Boehme <slow at samba.org>:
> On Tue, Dec 29, 2015 at 01:34:34AM +0900, HAT wrote:
>> In case of OS X 10.9 and later, any file could not be removed.
>> 
>> $ rm test.txt
>> rm: test.txt: Resource busy
>> 
>> cannot remove:
>> OS X 10.11.2 El Capitan
>> OS X 10.10.5 Yosemite
>> OS X 10.9.5 Mavericks
>> 
>> can remove:
>> OS X 10.8.5 Mountain Lion
>> OS X 10.7.5 Lion
>> OS X 10.6.8 Snow Leopard
>> Windows 7
>> 
>> Environment:
>> Fedora rawhide
>> samba-4.3.3-0.fc24
>> 
>> smb.conf:
>> [global]
>>         workgroup = LOCALNET
>>         server string = %h
>>         dos charset = CP932
>>         log file = /var/log/samba/log.%m
>>         max log size = 50
>>         security = user
>>         passdb backend = smbpasswd
>>         load printers = yes
>>         cups options = raw
>> [Test 1]
>>       path = /export/test1/
>>       writable = yes
>>       vfs objects = catia fruit streams_xattr
>>       fruit:locking = netatalk
>>       fruit:encoding = native
>>       streams_xattr:prefix = user.
>>       streams_xattr:store_stream_type = no
>>       ea support = yes
>> 
>> 
>> If "fruit:locking = netatalk" line is deleted, there is no problem.
> 
> What happens if you keep the locking but remve the streams_xattr
> options?

-------------------------------------------------------------------------
[global]
	workgroup = LOCALNET
	server string = %h
	dos charset = CP932
	log file = /var/log/samba/log.%m
	max log size = 50
	security = user
	passdb backend = smbpasswd
	load printers = yes
	cups options = raw

[Test 1]
	path = /export/test1/
	writable = yes
	vfs objects = catia fruit streams_xattr
	fruit:locking = netatalk
	fruit:encoding = native
;	streams_xattr:prefix = user.
;	streams_xattr:store_stream_type = no
	ea support = yes

remove streams_xattr options.

$ rm test.txt
rm: test.txt: Resource busy

-------------------------------------------------------------------------
[global]
	workgroup = LOCALNET
	server string = %h
	dos charset = CP932
	log file = /var/log/samba/log.%m
	max log size = 50
	security = user
	passdb backend = smbpasswd
	load printers = yes
	cups options = raw

[Test 1]
	path = /export/test1/
	writable = yes
;	vfs objects = catia fruit streams_xattr
	vfs objects = catia fruit
	fruit:locking = netatalk
	fruit:encoding = native
;	streams_xattr:prefix = user.
;	streams_xattr:store_stream_type = no
	ea support = yes

remove vfs_streams_xattr.

$ rm test.txt
rm: test.txt: Resource busy

-------------------------------------------------------------------------
[global]
	workgroup = LOCALNET
	server string = %h
	dos charset = CP932
	log file = /var/log/samba/log.%m
	max log size = 50
	security = user
	passdb backend = smbpasswd
	load printers = yes
	cups options = raw

[Test 1]
	path = /export/test1/
	writable = yes
	vfs objects = catia fruit streams_xattr
	fruit:aapl = no
	fruit:locking = netatalk
	fruit:encoding = native
	streams_xattr:prefix = user.
	streams_xattr:store_stream_type = no
	ea support = yes

add fruit:aapl = no.

$ rm test.txt
rm: test.txt: Resource busy

-------------------------------------------------------------------------
[global]
	workgroup = LOCALNET
	server string = %h
	dos charset = CP932
	log file = /var/log/samba/log.%m
	max log size = 50
	security = user
	passdb backend = smbpasswd
	load printers = yes
	cups options = raw

[Test 1]
	path = /export/test1/
	writable = yes
;	vfs objects = catia fruit streams_xattr
	vfs objects = catia streams_xattr
;	fruit:locking = netatalk
;	fruit:encoding = native
	streams_xattr:prefix = user.
	streams_xattr:store_stream_type = no
	ea support = yes

remove vfs_fruit.

$ rm test.txt

can remove!

-- 
HAT



More information about the samba mailing list