From: Richard W.M. Jones Date: Sat, 1 Oct 2011 07:20:50 +0000 (+0100) Subject: mount: No longer implicitly add -o sync,noatime options. X-Git-Tag: 1.13.16~2 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=5c2f1a2d9433eeb5aebeec26f0412c703bbe7269;p=libguestfs.git mount: No longer implicitly add -o sync,noatime options. --- diff --git a/daemon/mount.c b/daemon/mount.c index be289da..ab43c20 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -123,7 +123,7 @@ do_mount_vfs (const char *options, const char *vfstype, int do_mount (const char *device, const char *mountpoint) { - return do_mount_vfs ("sync,noatime", NULL, device, mountpoint); + return do_mount_vfs ("", NULL, device, mountpoint); } int diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 8d03275..4914687 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1595,15 +1595,12 @@ exist. The mounted filesystem is writable, if we have sufficient permissions on the underlying device. -B -When you use this call, the filesystem options C and C -are set implicitly. This was originally done because we thought it -would improve reliability, but it turns out that I<-o sync> has a -very large negative performance impact and negligible effect on -reliability. Therefore we recommend that you avoid using -C in any code that needs performance, and instead -use C (use an empty string for the first -parameter if you don't want any options)."); +Before libguestfs 1.13.16, this call implicitly added the options +C and C. The C option greatly slowed +writes and caused many problems for users. If your program +might need to work with older versions of libguestfs, use +C instead (using an empty string for the +first parameter if you don't want any options)."); ("sync", (RErr, [], []), 2, [], [ InitEmpty, Always, TestRun [["sync"]]], diff --git a/src/guestfs.pod b/src/guestfs.pod index 7580498..b87a997 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -802,6 +802,9 @@ can make this very puzzling if you are trying to debug a problem. =item Mount option C<-o sync> should not be the default. +I L no longer adds any options starting +from libguestfs 1.13.16. This section only applies to older versions. + If you use L, then C<-o sync,noatime> are added implicitly. However C<-o sync> does not add any reliability benefit, but does have a very large performance impact.