summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-21 04:33:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:37 -0500
commit5e40d0187b86f758b0fa744365e657ec6ee40ff5 (patch)
tree93bdd233c205cd6c00a4232e031bb6174fefebf7 /source4/ntvfs/posix
parent9cc64156c48837944a41e8e9eb2f3283a3859072 (diff)
downloadsamba-5e40d0187b86f758b0fa744365e657ec6ee40ff5.tar.gz
samba-5e40d0187b86f758b0fa744365e657ec6ee40ff5.tar.bz2
samba-5e40d0187b86f758b0fa744365e657ec6ee40ff5.zip
r7795: use a share specific allocation rounding
(This used to be commit 9adacb0d1620d4cfadd515239b853977cf03a719)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c
index 906428fc6d..ac12f3853f 100644
--- a/source4/ntvfs/posix/vfs_posix.c
+++ b/source4/ntvfs/posix/vfs_posix.c
@@ -52,7 +52,8 @@ static void pvfs_setup_options(struct pvfs_state *pvfs)
}
/* this must be a power of 2 */
- pvfs->alloc_size_rounding = lp_parm_int(-1, "posix", "allocationrounding", 512);
+ pvfs->alloc_size_rounding = lp_parm_int(snum,
+ "posix", "allocationrounding", 512);
#if HAVE_XATTR_SUPPORT
if (lp_parm_bool(snum, "posix", "xattr", True)) pvfs->flags |= PVFS_FLAG_XATTR_ENABLE;