SMB share using recycler and get rid of the “Are you sure you want to copy this file without its properties?" (ohne eigenschaften kopieren)

  • Per default, if you create a smb share, you will get a “Are you sure you want to copy this file without its properties?" ("Wollen Sie die Datei wirklich ohne Eigenschaften kopieren" in German version) warning from Windows clients.


    To get rid of that, the

    Code
    vfs objects = acl_xattr streams_xattr


    line can be addet to the extended options of each share.


    The problem is, that this will break the recycler feature of the share.



    To keep the the redycler functionality, you have to add the following code to the extended options of each share:

    Code
    vfs objects = recycle acl_xattr streams_xattr
    	recycle:repository = .recycle/%U
    	recycle:keeptree = yes
    	recycle:versions = yes
    	recycle:touch = yes
    	recycle:directory_mode = 0777
    	recycle:subdir_mode = 0700
    	recycle:exclude = 
    	recycle:exclude_dir =
    	recycle:maxsize = 0

    This also works if the on-switch in the recycler section of the share is not set.
    But if this is the case, you will have to empy your recycler folders by hand.
    If the "enable recycyler" switch is enabled, the automatic mode of emtying the trash works fine (with the posted code), but the maximumfilesize entry has no effect. If a filesize restriction is wanted, this has to be set in line 10 of the posted code (value in bytes, 0 for no limit, see vfs_recycle).


    Feature request:
    It would be fine if the "acl_xattr" and "streams_xattr" would be added to the "vfs objets = ..." line of the automatic created entry of the recycler, even better switches for the addtional vfs modules or a free editable line.
    Reason for the problem is, that a new line of vfs objects = ... overrides the first line.
    (I don't know were to start a bufgix / feature request)


    For the fix of the “Are you sure you want to copy this file without its properties?" ("Wollen Sie die Datei wirklich ohne Eigenschaften kopieren" in German version) message in openmediavault 2, you have to add the line

    Code
    kernel oplocks = no


    in the extended options section of services->SMB/CIFS.

    • Offizieller Beitrag

    I would create a feature request on bugtracker.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!