From: Richard Jones Date: Fri, 30 Apr 2010 12:56:11 +0000 (+0100) Subject: Document that guestfs_mount implies -o sync and performance problem (RHBZ#587582). X-Git-Tag: 1.3.9~1 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=fd2d10d6ed91f417a9b99bb61526b45bb7ed3e4e Document that guestfs_mount implies -o sync and performance problem (RHBZ#587582). --- diff --git a/src/generator.ml b/src/generator.ml index 766327e..30d1038 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -958,8 +958,15 @@ exist. The mounted filesystem is writable, if we have sufficient permissions on the underlying device. -The filesystem options C and C are set with this -call, in order to improve reliability."); +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)."); ("sync", (RErr, []), 2, [], [ InitEmpty, Always, TestRun [["sync"]]], @@ -2095,7 +2102,11 @@ mounts the filesystem with the read-only (I<-o ro>) flag."); "\ This is the same as the C command, but it allows you to set the mount options as for the -L I<-o> flag."); +L I<-o> flag. + +If the C parameter is an empty string, then +no options are passed (all options default to whatever +the filesystem uses)."); ("mount_vfs", (RErr, [String "options"; String "vfstype"; Device "device"; String "mountpoint"]), 75, [], [],