[Samba] VFS Objects Recycle questions / Round Two

TAKAHASHI Motonobu monyo at monyo.com
Sat Jul 30 12:54:26 MDT 2011


From: "Robert Adkins II" <radkins at impelind.com>
Date: Wed, 27 Jul 2011 15:07:48 -0400

> I have a need to setup the recycle vfs object on our server. 
>  
> On  my test server, I have all of the shares on a single drive and 
> have put the following into each share:

(snip)

> On the live server, there are several partitions with shares split 
> across the several partitions. The setup is the same, in terms of 
> having the above entered into the individual shares and the RecycleBin 
> for each share is located on the same partition/mount point that the 
> share is located.
> Example:
>  
> [share1]

(snip)

>         vfs_objects = recycle
>         recycle:repository = /mnt/disk2/sharebin/%u

(snip)

> Everything else matches, the folders exist, the folder permissions are 
> the same, it's just a no go on relinking the files on a delete command 
> from the "share1" share.

AFAIK, "recycle:repository" cannot contain "/".

At 474th line in source3/modules/vfs_recycle.c,

        /* shouldn't we allow absolute path names here? --metze */
        /* Yes :-). JRA. */
        trim_char(repository, '\0', '/');

---
TAKAHASHI Motonobu <monyo at samba.gr.jp>


More information about the samba mailing list