VFS_CROSSRENAME(1M) System Administration tools VFS_CROSSRENAME(1M)NAME
vfs_crossrename - server side rename files across filesystem boundaries
SYNOPSIS
vfs objects = crossrename
DESCRIPTION
This VFS module is part of the samba(7) suite.
The vfs_crossrename VFS module allows server side rename operations
even if source and target are on different physical devices. A "move"
in Explorer is usually a rename operation if it is inside of a single
share or device. Usually such a rename operation returns
NT_STATUS_NOT_SAME_DEVICE and the client has to move the file by manual
copy and delete operations. If the rename by copy is done by the server
this can be much more efficient. vfs_crossrename tries to do this
server-side cross-device rename operation. There are however
limitations that this module currently does not solve:
the ACLs of files are not preserved .RE
meta data in EAs are not preserved .RE
renames of whole subdirectories cannot be done
recursively, in that case we still return
STATUS_NOT_SAME_DEVICE and let the client decide
what to do .RE
rename operations of huge files can cause
hangs on the client because clients expect a
rename operation to return fast .RE
This module is stackable.
OPTIONS
crossrename:sizelimit = BYTES
server-side cross-device-renames are only done for files if the
filesize is not larger than the defined size in MiB to prevent
timeouts. The default sizelimit is 20 (MiB)
EXAMPLES
To add server-side cross-device renames inside of a share for all files
sized up to 50MB:
[testshare]
path = /data/mounts
vfs objects = crossrename
crossrename:sizelimit = 50
VERSION
This man page is correct for version 3.6.0 of the Samba suite.
AUTHOR
The original Samba software and related utilities were created by
Andrew Tridgell. Samba is now developed by the Samba Team as an Open
Source project similar to the way the Linux kernel is developed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
┌────────────────────┬─────────────────────────────────┐
│ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
├────────────────────┼─────────────────────────────────┤
│Availability │ SUNWsmbar, SUNWsmbac, SUNWsmbau │
├────────────────────┼─────────────────────────────────┤
│Interface Stability │ External │
└────────────────────┴─────────────────────────────────┘
NOTES
Source code for Samba is available in the SUNWsmbaS package.
Samba(7) delivers the set of four SMF(5) services as can be seen from
the following example:
$ svcs samba wins winbind swat
STATE STIME FMRI
disabled Apr_21 svc:/network/samba:default
disabled Apr_21 svc:/network/winbind:default
disabled Apr_21 svc:/network/wins:default
disabled Apr_21 svc:/network/swat:default
where the services are:
"samba"
runs the smbd daemon managing the CIFS sessions
"wins"
runs the nmbd daemon enabling the browsing (WINS)
"winbind"
runs the winbindd daemon making the domain idmap
"swat"
Samba Web Administration Tool is a service providing access to
browser-based Samba administration interface and on-line
documentation. The service runs on software loopback network
interface on port 901/tcp, i.e. opening "http://localhost:901/" in
browser will access the SWAT service on local machine.
Please note: SWAT uses HTTP Basic Authentication scheme where user name
and passwords are sent over the network in clear text. In the SWAT case
the user name is root. Transferring such sensitive data is advisable
only on the software loopback network interface or over secure
networks.
Samba 3.6 04/10/2012 VFS_CROSSRENAME(1M)