1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
'\" t
.\" Title: vfs_crossrename
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
.\" Date: 06/22/2012
.\" Manual: System Administration tools
.\" Source: Samba 3.6
.\" Language: English
.\"
.TH "VFS_CROSSRENAME" "8" "06/22/2012" "Samba 3\&.6" "System Administration tools"
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
vfs_crossrename \- server side rename files across filesystem boundaries
.SH "SYNOPSIS"
.HP \w'\ 'u
vfs objects = crossrename
.SH "DESCRIPTION"
.PP
This VFS module is part of the
\fBsamba\fR(7)
suite\&.
.PP
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:
.PP
.RS 4
the ACLs of files are not preserved
.RE
.PP
.RS 4
meta data in EAs are not preserved
.RE
.PP
.RS 4
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
.PP
.RS 4
rename operations of huge files can cause hangs on the
client because clients expect a rename operation to
return fast
.RE
.PP
This module is stackable\&.
.SH "OPTIONS"
.PP
crossrename:sizelimit = BYTES
.RS 4
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)
.RE
.SH "EXAMPLES"
.PP
To add server\-side cross\-device renames inside of a share for all files sized up to 50MB:
.sp
.if n \{\
.RS 4
.\}
.nf
\fI[testshare]\fR
\m[blue]\fBpath = /data/mounts\fR\m[]
\m[blue]\fBvfs objects = crossrename\fR\m[]
\m[blue]\fBcrossrename:sizelimit = 50\fR\m[]
.fi
.if n \{\
.RE
.\}
.SH "VERSION"
.PP
This man page is correct for version 3\&.6\&.0 of the Samba suite\&.
.SH "AUTHOR"
.PP
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\&.
|