Displaying 4 results from an estimated 4 matches for "vfs_fill_sparse".
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...t *req,
if (pos == -1) {
ret = vfs_write_data(req, fsp, data, n);
} else {
+ enum smb_strict_allocate_options sa_options = lp_strict_allocate(SNUM(fsp->conn));
fsp->fh->pos = pos;
- if (pos && lp_strict_allocate(SNUM(fsp->conn))) {
- if (vfs_fill_sparse(fsp, pos) == -1) {
+ if (pos && (sa_options != STRICT_ALLOCATE_OFF)) {
+ if (vfs_fill_sparse(fsp, pos, sa_options) == -1) {
return -1;
}
}
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c
index 6cf156c..e8c0ebb 100644
--- a/source/smbd/vfs.c
+++ b/source/smbd/vfs.c
@@ -545,...
2011 Mar 07
0
[Announce] Samba 3.5.8 Available for Download
...time" parameter.
* BUG 7777: Fix requesting lookups for BUILTIN sids.
* BUG 7785: Fix atime limit.
* BUG 7791: Fix copying files from a SMB share using Gnome vfs and SMB
signing.
* BUG 7812: ACL inheritance cannot be disabled in vfs_acl_xattr/vfs_acl_tdb.
* BUG 7835: vfs_fill_sparse() doesn't use posix_fallocate when strict
allocate is on.
* BUG 7843: Expand the local SAMs aliases.
* BUG 7892: Fix stale lock in open_file_fchmod().
* BUG 7950: Revalidate the pathname once re-constructed from a root fsp.
o Andrew Bartlett <abartlet at samba.org>...
2011 Mar 07
0
[Announce] Samba 3.5.8 Available for Download
...time" parameter.
* BUG 7777: Fix requesting lookups for BUILTIN sids.
* BUG 7785: Fix atime limit.
* BUG 7791: Fix copying files from a SMB share using Gnome vfs and SMB
signing.
* BUG 7812: ACL inheritance cannot be disabled in vfs_acl_xattr/vfs_acl_tdb.
* BUG 7835: vfs_fill_sparse() doesn't use posix_fallocate when strict
allocate is on.
* BUG 7843: Expand the local SAMs aliases.
* BUG 7892: Fix stale lock in open_file_fchmod().
* BUG 7950: Revalidate the pathname once re-constructed from a root fsp.
o Andrew Bartlett <abartlet at samba.org>...
2010 Dec 08
2
Improving Samba write performance on Linux
...do I know this is working ?
-------------------------------
Samba will run faster :-). A *lot* faster. Note this will be seen
mostly on loads heavily dependent on write performance, such as file
copies or streaming writes.
For users, set debug level 10 on smbd and look for messages of the
form:
vfs_fill_sparse: sys_posix_fallocate failed with error XXXX. Falling
back to slow manual allocation
(where XXXX will most commonly be 38, which corresponds to ENOSYS on
Linux). This will not be printed in the case where glibc emulation via
statfs() is being used to do the allocation. As this is being done
inside...