diff options
author | Richard Jones <rjones@redhat.com> | 2010-04-19 20:13:05 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-04-19 20:13:05 +0100 |
commit | 42e43db927dac13da0afe6dba39708295eb06021 (patch) | |
tree | 0a13a57704d9e1068e7febe3ac8fd3cf8ee29b1c | |
parent | 27a67f8615b5788f5ff21b68b9afc01c35c5b832 (diff) | |
download | libguestfs-42e43db927dac13da0afe6dba39708295eb06021.tar.gz libguestfs-42e43db927dac13da0afe6dba39708295eb06021.tar.xz libguestfs-42e43db927dac13da0afe6dba39708295eb06021.zip |
docs: Clarify documentation for mknod (RHBZ#582948).
-rwxr-xr-x | src/generator.ml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml index b274411b..10758781 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2989,6 +2989,14 @@ constants. C<devmajor> and C<devminor> are the device major and minor numbers, only used when creating block and character special devices. +Note that, just like L<mknod(2)>, the mode must be bitwise +OR'd with S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call +just creates a regular file). These constants are +available in the standard Linux header files, or you can use +C<guestfs_mknod_b>, C<guestfs_mknod_c> or C<guestfs_mkfifo> +which are wrappers around this command which bitwise OR +in the appropriate constant for you. + The mode actually set is affected by the umask."); ("mkfifo", (RErr, [Int "mode"; Pathname "path"]), 134, [Optional "mknod"], |