From b43a5810f839df823af2eb74fa2290c64e5dfaf6 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Fri, 29 Aug 2014 12:22:56 +0200 Subject: ntvfs/posix: don't advertise FS_ATTR_SPARSE_FILES Handling of the FSCTL_SET_SPARSE ioctl in ntvfs is broken. Removing FS_ATTR_SPARSE_FILES from the filesystem attributes ensures that clients, including the smbtorture ioctl tests, don't attempt to use this functionality. Signed-off-by: David Disseldorp Reviewed-by: Jeremy Allson Autobuild-User(master): David Disseldorp Autobuild-Date(master): Fri Aug 29 22:06:21 CEST 2014 on sn-devel-104 --- source4/ntvfs/posix/vfs_posix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index 304a9ff8fe..0ce2e6f5a8 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -114,8 +114,7 @@ static void pvfs_setup_options(struct pvfs_state *pvfs) pvfs->fs_attribs = FS_ATTR_CASE_SENSITIVE_SEARCH | FS_ATTR_CASE_PRESERVED_NAMES | - FS_ATTR_UNICODE_ON_DISK | - FS_ATTR_SPARSE_FILES; + FS_ATTR_UNICODE_ON_DISK; /* allow xattrs to be stored in a external tdb */ eadb = share_string_option(pvfs, scfg, PVFS_EADB, NULL); -- cgit