r7795: use a share specific allocation rounding
authorAndrew Tridgell <tridge@samba.org>
Tue, 21 Jun 2005 04:33:24 +0000 (04:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:37 +0000 (13:18 -0500)
(This used to be commit 9adacb0d1620d4cfadd515239b853977cf03a719)

source4/ntvfs/posix/vfs_posix.c

index 906428fc6dfb77c6d6c031f1664d67df4715647c..ac12f3853fbed67566fa3a770dd0deafab7f3b8e 100644 (file)
@@ -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;