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