X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=guestfish-actions.pod;h=116878ded5cef1aed0304db58641c702fbafc9cc;hp=e240f4994df79e85efdd6c9b45d30f896bb4ff9f;hb=1765330e07a48dc6f7bdef7007f69ebe606fa731;hpb=6bcbe54b5785cb8c911ccf4b724ae6abfdf53ce4 diff --git a/guestfish-actions.pod b/guestfish-actions.pod index e240f49..116878d 100644 --- a/guestfish-actions.pod +++ b/guestfish-actions.pod @@ -182,6 +182,105 @@ how files are saved. Set the value associated with C to C. +=head2 blockdev-flushbufs + + blockdev-flushbufs device + +This tells the kernel to flush internal buffers associated +with C. + +This uses the L command. + +=head2 blockdev-getbsz + + blockdev-getbsz device + +This returns the block size of a device. + +(Note this is different from both I and +I). + +This uses the L command. + +=head2 blockdev-getro + + blockdev-getro device + +Returns a boolean indicating if the block device is read-only +(true if read-only, false if not). + +This uses the L command. + +=head2 blockdev-getsize64 + + blockdev-getsize64 device + +This returns the size of the device in bytes. + +See also C. + +This uses the L command. + +=head2 blockdev-getss + + blockdev-getss device + +This returns the size of sectors on a block device. +Usually 512, but can be larger for modern devices. + +(Note, this is not the size in sectors, use C +for that). + +This uses the L command. + +=head2 blockdev-getsz + + blockdev-getsz device + +This returns the size of the device in units of 512-byte sectors +(even if the sectorsize isn't 512 bytes ... weird). + +See also C for the real sector size of +the device, and C for the more +useful I. + +This uses the L command. + +=head2 blockdev-rereadpt + + blockdev-rereadpt device + +Reread the partition table on C. + +This uses the L command. + +=head2 blockdev-setbsz + + blockdev-setbsz device blocksize + +This sets the block size of a device. + +(Note this is different from both I and +I). + +This uses the L command. + +=head2 blockdev-setro + + blockdev-setro device + +Sets the block device named C to read-only. + +This uses the L command. + +=head2 blockdev-setrw + + blockdev-setrw device + +Sets the block device named C to read-write. + +This uses the L command. + =head2 cat cat path @@ -190,7 +289,7 @@ Return the contents of the file named C. Note that this function cannot correctly handle binary files (specifically, files containing C<\0> character which is treated -as end of string). For those you need to use the C +as end of string). For those you need to use the C function which has a more complex interface. Because of the message protocol, there is a transfer limit @@ -631,6 +730,18 @@ Touch acts like the L command. It can be used to update the timestamps on a file, or, if the file does not exist, to create a new zero-length file. +=head2 tune2fs-l + + tune2fs-l device + +This returns the contents of the ext2 or ext3 filesystem superblock +on C. + +It is the same as running C. See L +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. + =head2 umount | unmount umount pathordevice