X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Fguestfs.pod;h=779ecc55ad7da1e30e5c37e1e7f4c68aaf5c59e5;hp=cf70d5d17e0b28b29944e67fd813144e97a1a125;hb=c2a8efc548d6f997049cbb3d63bab360b0d946b6;hpb=2e0f3ed54b978925c79ca0d33e76bec338b23631 diff --git a/src/guestfs.pod b/src/guestfs.pod index cf70d5d..779ecc5 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -202,7 +202,7 @@ conditions after each call. (Other language bindings turn these errors into exceptions). File writes are affected by the per-handle umask, set by calling -C and defaulting to 022. +C and defaulting to 022. See L. =head2 PARTITIONING @@ -437,6 +437,23 @@ When new files are created, you may need to label them explicitly, for example by running the external command C. +=head2 UMASK + +Certain calls are affected by the current file mode creation mask (the +"umask"). In particular ones which create files or directories, such +as C, C or C. This +affects either the default mode that the file is created with or +modifies the mode that you supply. + +The default umask is C<022>, so files are created with modes such as +C<0644> and directories with C<0755>. + +There are two ways to avoid being affected by umask. Either set umask +to 0 (call C early after launching). Or call +C after creating each file or directory. + +For more information about umask, see L. + =head2 SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS Libguestfs can mount NTFS partitions. It does this using the