summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-02 09:32:52 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-02 14:35:41 +0000
commitf56bc8edd5f23c23298bf3f609a98dd6fec5d512 (patch)
treed8810fa734b73881be1312ef7877d3d41c5c4763 /generator
parent4cfc277674f50ed9eff63e2010d3241172e7a30e (diff)
downloadlibguestfs-f56bc8edd5f23c23298bf3f609a98dd6fec5d512.tar.gz
libguestfs-f56bc8edd5f23c23298bf3f609a98dd6fec5d512.tar.xz
libguestfs-f56bc8edd5f23c23298bf3f609a98dd6fec5d512.zip
New API: mklost_and_found
Diffstat (limited to 'generator')
-rw-r--r--generator/actions.ml15
1 files changed, 15 insertions, 0 deletions
diff --git a/generator/actions.ml b/generator/actions.ml
index 5d713478..5c3de524 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -10345,6 +10345,21 @@ If the optional C<suffix> parameter is given, then the suffix
See also: C<guestfs_mkdtemp>." };
+ { defaults with
+ name = "mklost_and_found";
+ style = RErr, [Pathname "mountpoint"], [];
+ proc_nr = Some 374;
+ tests = [
+ InitBasicFS, Always, TestRun (
+ [["rm_rf"; "/lost+found"];
+ ["mklost_and_found"; "/"]])
+ ];
+ shortdesc = "make lost+found directory on an ext2/3/4 filesystem";
+ longdesc = "\
+Make the C<lost+found> directory, normally in the root directory
+of an ext2/3/4 filesystem. C<mountpoint> is the directory under
+which we try to create the C<lost+found> directory." };
+
]
(* Non-API meta-commands available only in guestfish.