Displaying 20 results from an estimated 72 matches for "ifavail".
Did you mean:
favail
2016 Jan 27
2
[PATCH 1/2] generator: add TestRunOrUnsupported test type
Create a new TestRunOrUnsupported test type, which represents a test
sequence where a failure with ENOTSUP in the last command only marks the
test as skipped. To be used mainly when testing features available only
with some versions of helper tools used in the appliance, for example.
---
generator/tests_c_api.ml | 26 ++++++++++++++++++++++++--
generator/types.ml | 5 +++++
2016 Jan 27
0
[PATCH 2/2] actions: mark btrfs test case of vfs_minimum_size as TestRunOrUnsupported
...anged, 1 insertion(+), 1 deletion(-)
diff --git a/generator/actions.ml b/generator/actions.ml
index 14902e7..0d227cf 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -12765,7 +12765,7 @@ To read the UUID on a filesystem, call C<guestfs_vfs_uuid>." };
InitPartition, IfAvailable "ntfsprogs", TestRun(
[["mkfs"; "ntfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"];
["vfs_minimum_size"; "/dev/sda1"]]), [];
- InitPartition, IfAvailable "b...
2015 Jan 05
3
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
...ot;];
> + ["btrfs_filesystem_set_label"; "/"; "newlabel"];
> + ["btrfs_filesystem_get_label"; "/"]], "newlabel"), [];
> + ];
This test bit would be good to be added to the tests of set_label,
just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
is available.
Thanks,
--
Pino Toscano
2015 Jan 05
2
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...ot;"; ""];
> + ["mount"; "/dev/sda1"; "/"];
> + ["btrfs_filesystem_get_label"; "/";]], "label\n"), [];
> + ];
This test bit would be good to be added to the tests of vfs_label,
just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
is available.
Thanks,
--
Pino Toscano
2015 Jan 07
1
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...unt"; "/dev/sda1"; "/"];
> > > + ["btrfs_filesystem_get_label"; "/";]], "label\n"), [];
> > > + ];
> >
> > This test bit would be good to be added to the tests of vfs_label,
> > just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
> > is available.
Feel free to send this bit (updated) anyway, also for patch 5.
Thanks,
--
Pino Toscano
2015 Mar 13
2
[PATCH] tests: add test case of set-label and vfs-label for btrfs
...uot;/dev/sda"; "mbr"];
["mkfs"; "ext2"; "/dev/sda1"; ""; "NOARG"; ""; ""; "test-label"];
["vfs_label"; "/dev/sda1"]], "test-label"), [];
+ InitEmpty, IfAvailable "btrfs", TestResultString (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["mkfs"; "btrfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; ""];
+ ["set_label"; &q...
2010 Jul 30
1
[PATCH] New API: is-lv: check if a block device is a logical volume (RHBZ#619793)
...and deletes the key in key slot C<keyslot> from the
encrypted LUKS device C<device>. C<key> must be one of the
I<other> keys.");
+ ("is_lv", (RBool "lvflag", [Device "device"]), 264, [Optional "lvm2"],
+ [InitBasicFSonLVM, IfAvailable "lvm2", TestOutputTrue (
+ [["is_lv"; "/dev/VG/LV"]]);
+ InitBasicFSonLVM, IfAvailable "lvm2", TestOutputFalse (
+ [["is_lv"; "/dev/sda1"]])],
+ "test if device is a logical volume",
+ "\
+This command t...
2012 May 15
1
[PATCH] NEW API: add new api btrfs-fsck
...,6 +7232,17 @@ If C<devices> is an empty list, this does nothing.");
Enable or disable the seeding feature of a device that contains
a btrfs filesystem.");
+ ("btrfs_fsck", (RErr, [Device "device"], []), 332, [Optional "btrfs"],
+ [InitPartition, IfAvailable "btrfs", TestRun (
+ [["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
+ ["btrfs_fsck"; "/dev/sda1"]])],
+ "check a btrfs...
2015 Jan 07
2
Re: [PATCH 2/5] New API: btrfs_check
...uot;; ""; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
> + ["btrfs_check"; "/dev/sda1"]]), [];
> + ];
This test bit would be good to be added to the tests of fsck,
just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
is available.
Thanks,
--
Pino Toscano
2015 Oct 19
5
[PATCHv2 0/2] Introduce vfs_min_size API to get minimum filesystem size.
Tried to make it in accordance with your comments.
Difference to v1:
Added reply_with_error where necessary.
Changed name get_min_size -> vfs_min_size.
Maxim Perevedentsev (2):
New API: vfs_min_size
Include resize2fs_P into vfs_min_size.
daemon/Makefile.am | 1 +
daemon/daemon.h | 2 ++
daemon/ext2.c | 45 ++++++++++++++++++++++++++-----
daemon/fs-min-size.c | 49
2015 Oct 27
1
[PATCHv3] Added btrfs support to vfs_minimum_size.
...uot;,
vfs_type);
diff --git a/generator/actions.ml b/generator/actions.ml
index 62176ab..8832410 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -12761,6 +12761,10 @@ To read the UUID on a filesystem, call C<guestfs_vfs_uuid>." };
InitPartition, IfAvailable "ntfsprogs", TestRun(
[["mkfs"; "ntfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"];
["vfs_minimum_size"; "/dev/sda1"]]), [];
+ InitPartition, Always, TestRun (
+...
2016 Feb 03
5
[PATCH 0/3] tests: Various fixes for btrfs and aarch64.
These patches fix btrfs on aarch64. You still need btrfs-progs 4.4
which was only released a few days ago.
Rich.
2012 Aug 20
1
[PATCH] xfs: add new api xfs_admin
...t;; OBool "v2log"; OBool "printlabel"; OBool "projid32bit"; OBool "printuuid"; OBool "lazycounter"; OString "label"; OString "uuid"];
+ proc_nr = Some 349;
+ optional = Some "xfs";
+ tests = [
+ InitEmpty, IfAvailable "xfs", TestOutputStruct (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""];
+ ["xfs_admin"; "/dev/sda1"...
2014 Dec 26
10
[PATCH 0/5] btrfs: add API for btrfs filesystem, check and scrub
Hi,
There is one problem: btrfs_filesystem_set_label just doesnt work,
giving error message:
libguestfs: error: btrfs_filesystem_set_label: /: ERROR: unable to set label Bad address
I'm almost sure the patch has no problem, but can't figure out what's
the cause. So patch 5 is only for review.
Other APIs have no problem.
Regards,
Hu
Hu Tao (5):
New API: btrfs_scrub
New API:
2015 Oct 22
2
[PATCH] Added btrfs support for vfs_min_size.
...uot;,
vfs_type);
diff --git a/generator/actions.ml b/generator/actions.ml
index 62176ab..8832410 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -12761,6 +12761,10 @@ To read the UUID on a filesystem, call C<guestfs_vfs_uuid>." };
InitPartition, IfAvailable "ntfsprogs", TestRun(
[["mkfs"; "ntfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; "NOARG"];
["vfs_minimum_size"; "/dev/sda1"]]), [];
+ InitPartition, Always, TestRun (
+...
2012 Aug 21
1
[PATCH] xfs: add a new api xfs_repair
...Bool "forcegeometry"; OInt64 "maxmem"; OInt64 "ihashsize"; OInt64 "bhashsize"; OInt64 "agstride"; OString "logdev"; OString "rtdev"];
+ proc_nr = Some 350;
+ optional = Some "xfs";
+ tests = [
+ InitEmpty, IfAvailable "xfs", TestRun (
+ [["part_disk"; "/dev/sda"; "mbr"];
+ ["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""];
+ ["xfs_repair"; ""; "";...
2017 Jan 19
2
[PATCH 1/2] canonical_device_name: Don't rewrite /dev/mdX as /dev/sdX (RHBZ#1414682).
The guestfs_canonical_device_name API was rewriting /dev/mdX as
/dev/sdX. This is wrong since (eg) /dev/sd0 is not a device name, so
if you pass the canonicalized name back to the API it will fail.
virt-v2v was one tool doing this.
---
src/canonical-name.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/canonical-name.c b/src/canonical-name.c
index ae7b468..d72768f 100644
---
2015 Jan 06
0
Re: [PATCH 3/5] New API: btrfs_filesystem_get_label
...> + ["mount"; "/dev/sda1"; "/"];
> > + ["btrfs_filesystem_get_label"; "/";]], "label\n"), [];
> > + ];
>
> This test bit would be good to be added to the tests of vfs_label,
> just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
> is available.
>
> Thanks,
> --
> Pino Toscano
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs@redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
2015 Jan 12
0
Re: [PATCH 2/5] New API: btrfs_check
...;"; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
> > + ["btrfs_check"; "/dev/sda1"]]), [];
> > + ];
>
> This test bit would be good to be added to the tests of fsck,
> just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
> is available.
>
> Thanks,
> --
> Pino Toscano
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs@redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
2015 Jan 16
0
Re: [PATCH 5/5] New API: btrfs_filesystem_set_label
...ot;btrfs_filesystem_set_label"; "/"; "newlabel"];
> > + ["btrfs_filesystem_get_label"; "/"]], "newlabel"), [];
> > + ];
>
> This test bit would be good to be added to the tests of set_label,
> just with s/Always/IfAvailable "btrfs"/ so it is run only when btrfs
> is available.
I found that all btrfs APIs are in optgroup "btrfs", so it is OK to
"Always" test them.
Regards,
Hu