X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=perl%2Flib%2FSys%2FGuestfs.pm;h=083a0172cc341b1ef0484340208e4b50008a8d44;hp=5f8cef41d867c68cc519217c7f2090aab438612a;hb=0884d8bbae6d76a603ec1385ada2938f88981c5c;hpb=f68b3ac861ae607a333211c775dded82ae2b2c4a diff --git a/perl/lib/Sys/Guestfs.pm b/perl/lib/Sys/Guestfs.pm index 5f8cef4..083a017 100644 --- a/perl/lib/Sys/Guestfs.pm +++ b/perl/lib/Sys/Guestfs.pm @@ -949,12 +949,40 @@ directory and its contents after use. See also: L +=item $h->mkfifo ($mode, $path); + +This call creates a FIFO (named pipe) called C with +mode C. It is just a convenient wrapper around +C<$h-Emknod>. + =item $h->mkfs ($fstype, $device); This creates a filesystem on C (usually a partition or LVM logical volume). The filesystem type is C, for example C. +=item $h->mknod ($mode, $devmajor, $devminor, $path); + +This call creates block or character special devices, or +named pipes (FIFOs). + +The C parameter should be the mode, using the standard +constants. C and C are the +device major and minor numbers, only used when creating block +and character special devices. + +=item $h->mknod_b ($mode, $devmajor, $devminor, $path); + +This call creates a block device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C<$h-Emknod>. + +=item $h->mknod_c ($mode, $devmajor, $devminor, $path); + +This call creates a char device node called C with +mode C and device major/minor C and C. +It is just a convenient wrapper around C<$h-Emknod>. + =item $h->mkswap ($device); Create a swap partition on C. @@ -1442,6 +1470,20 @@ manpage for more details. The list of fields returned isn't clearly defined, and depends on both the version of C that libguestfs was built against, and the filesystem itself. +=item $oldmask = $h->umask ($mask); + +This function sets the mask used for creating new files and +device nodes to C. + +Typical umask values would be C<022> which creates new files +with permissions like "-rw-r--r--" or "-rwxr-xr-x", and +C<002> which creates new files with permissions like +"-rw-rw-r--" or "-rwxrwxr-x". + +See also L, C<$h-Emknod>, C<$h-Emkdir>. + +This call returns the previous umask. + =item $h->umount ($pathordevice); This unmounts the given filesystem. The filesystem may be