aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-15 18:49:52 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-15 18:49:52 -0700
commitd6217bb2a0450a9c4279526b5de5b21e3e3575d8 (patch)
tree312fa0aff0bbfb08c55c3789875db9795a3e05c1
parent73b6ff4b75cf1228ea61262c293fcb2fda5dfeea (diff)
Drop -o large_read mount option
This was only relevant for 2.4 kernels. Fixes #92.
-rw-r--r--ChangeLog.rst3
-rw-r--r--doc/mount.fuse.82
-rw-r--r--lib/mount.c2
-rw-r--r--lib/mount_bsd.c1
4 files changed, 3 insertions, 5 deletions
diff --git a/ChangeLog.rst b/ChangeLog.rst
index d18fc3e..99e548a 100644
--- a/ChangeLog.rst
+++ b/ChangeLog.rst
@@ -1,6 +1,9 @@
Unreleased Changes
==================
+* The ``-o large_read`` mount option has been dropped. Hopefully no
+ one uses a Linux 2.4 kernel anymore.
+
* The chmod, chown, truncate, utimens and getattr handlers of the
high-level API now all receive an additional struct fuse_file_info
pointer. This pointer is NULL if the file is not currently open.
diff --git a/doc/mount.fuse.8 b/doc/mount.fuse.8
index 88dd3f4..6c26578 100644
--- a/doc/mount.fuse.8
+++ b/doc/mount.fuse.8
@@ -33,8 +33,6 @@ This option disables flushing the cache of the file contents on every \fBopen\fP
\fBauto_cache\fP
This option enables automatic flushing of the data cache on \fBopen\fP(2). The cache will only be flushed if the modification time or the size of the file has changed.
.TP
-\fBlarge_read\fP
-Issue large read requests. This can improve performance for some filesystems, but can also degrade performance. This option is only useful on 2.4.X kernels, as on 2.6 kernels requests size is automatically determined for optimum performance.
.TP
\fBdirect_io\fP
This option disables the use of page cache (file content cache) in the kernel for this filesystem. This has several affects:
diff --git a/lib/mount.c b/lib/mount.c
index 386260c..45ac60a 100644
--- a/lib/mount.c
+++ b/lib/mount.c
@@ -93,7 +93,6 @@ static const struct fuse_opt fuse_mount_opts[] = {
FUSE_OPT_KEY("blkdev", KEY_FUSERMOUNT_OPT),
FUSE_OPT_KEY("fsname=", KEY_FUSERMOUNT_OPT),
FUSE_OPT_KEY("subtype=", KEY_SUBTYPE_OPT),
- FUSE_OPT_KEY("large_read", KEY_KERN_OPT),
FUSE_OPT_KEY("blksize=", KEY_KERN_OPT),
FUSE_OPT_KEY("default_permissions", KEY_KERN_OPT),
FUSE_OPT_KEY("context=", KEY_KERN_OPT),
@@ -130,7 +129,6 @@ void fuse_mount_help(void)
" -o default_permissions enable permission checking by kernel\n"
" -o fsname=NAME set filesystem name\n"
" -o subtype=NAME set filesystem type\n"
-" -o large_read issue large read requests (2.4 only)\n"
" -o max_read=N set maximum size of read requests\n\n");
}
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c
index bc3ed89..c838fcf 100644
--- a/lib/mount_bsd.c
+++ b/lib/mount_bsd.c
@@ -91,7 +91,6 @@ static const struct fuse_opt fuse_mount_opts[] = {
*/
FUSE_OPT_KEY("fsname=", KEY_KERN),
FUSE_OPT_KEY("nonempty", KEY_KERN),
- FUSE_OPT_KEY("large_read", KEY_KERN),
FUSE_OPT_END
};