summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-12-14 10:45:29 +0000
committerCorinna Vinschen <corinna@vinschen.de>2012-12-14 10:45:29 +0000
commit05297cca5fe43585ba7f8b6299d318b8b31b634a (patch)
tree36ab6968209c5f6c4a5fb2344dbf313f68612720 /winsup/cygwin/include/sys
parent60f901f4a9e7ab9e6030cc38f297b140233640ea (diff)
downloadcygnal-05297cca5fe43585ba7f8b6299d318b8b31b634a.tar.gz
cygnal-05297cca5fe43585ba7f8b6299d318b8b31b634a.tar.bz2
cygnal-05297cca5fe43585ba7f8b6299d318b8b31b634a.zip
* fhandler.cc (fhandler_base::write): Don't attempt to sparsify
an already sparse file. Drop check for FILE_SUPPORTS_SPARSE_FILES flag. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. (fhandler_base::lseek): Only set did_lseek if sparseness is supported. * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Don't attempt to sparsify an already sparse file. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. * mount.cc (oopt): Add "sparse" flag. (fillout_mntent): Ditto. * path.h (enum path_types): Add PATH_SPARSE. (path_conv::support_sparse): New method. (path_conv::fs_flags): Constify. (path_conv::fs_name_len): Ditto. include/sys/mount.h: Replace unused MOUNT_MIXED flag with MOUNT_SPARSE.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r--winsup/cygwin/include/sys/mount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/include/sys/mount.h b/winsup/cygwin/include/sys/mount.h
index 0680e4562..94620f998 100644
--- a/winsup/cygwin/include/sys/mount.h
+++ b/winsup/cygwin/include/sys/mount.h
@@ -26,8 +26,8 @@ enum
device mount */
MOUNT_CYGWIN_EXEC = 0x00040, /* file or directory is or contains a
cygwin executable */
- MOUNT_MIXED = 0x00080, /* reads are text, writes are binary
- not yet implemented */
+ MOUNT_SPARSE = 0x00080, /* Support automatic sparsifying of
+ files. */
MOUNT_NOTEXEC = 0x00100, /* don't check files for executable magic */
MOUNT_DEVFS = 0x00200, /* /device "filesystem" */
MOUNT_PROC = 0x00400, /* /proc "filesystem" */