vfs_fruit: cannot remove any file

classic Classic list List threaded Threaded
6 messages Options
HAT
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

vfs_fruit: cannot remove any file

HAT
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.

--
HAT

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: vfs_fruit: cannot remove any file

Ralph Böhme-2
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?

Cheerio!
-slow

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
HAT
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: vfs_fruit: cannot remove any file

HAT
Mon, 28 Dec 2015 18:24:17 +0100, Ralph Boehme <[hidden email]>:

> 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

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: vfs_fruit: cannot remove any file

Samba - General mailing list
Hi.

Tue, 29 Dec 2015 23:25:24 +0900 (JST), HAT <[hidden email]>:

> Mon, 28 Dec 2015 18:24:17 +0100, Ralph Boehme <[hidden email]>:
>> 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.

I confirmed this problem is resolved in samba 4.5.4 and 4.6.2.
There is still this problem in samba 4.4.13.
When was it fixed?
I could not find it in release notes.

--
HAT

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: vfs_fruit: cannot remove any file

Samba - General mailing list
On Wed, Apr 19, 2017 at 01:16:42AM +0900, HAT wrote:
> I confirmed this problem is resolved in samba 4.5.4 and 4.6.2.

maybe as a side effect of bug 12427.

Cheerio!
-slow

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: vfs_fruit: cannot remove any file

Samba - General mailing list
Tue, 18 Apr 2017 18:53:50 +0200, Ralph Böhme <[hidden email]>:
> On Wed, Apr 19, 2017 at 01:16:42AM +0900, HAT wrote:
>> I confirmed this problem is resolved in samba 4.5.4 and 4.6.2.

> maybe as a side effect of bug 12427.

Bug 12427 was fixed in samba 4.5.6 and 4.6.0 according to git and
release notes.
However, file can be removed using samba 4.5.4 on Ubuntu 17.04 Zesty.
It's mysterious.

--
HAT

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba
Loading...