search for: btrfs_avail

Displaying 19 results from an estimated 19 matches for "btrfs_avail".

2018 Nov 14
1
[PATCH] test-data: Allow tests to be run when Btrfs is not available.
...0755 --- a/test-data/phony-guests/make-fedora-img.pl +++ b/test-data/phony-guests/make-fedora-img.pl @@ -39,8 +39,15 @@ my @PARTITIONS = ( # 32k blank space ); -my @images; +# Test features. my $g = Sys::Guestfs->new (); +$g->add_drive ("/dev/null"); +$g->launch (); +my $btrfs_available = $g->feature_available (["btrfs"]); +$g->close (); + +my @images; +$g = Sys::Guestfs->new (); my $bootdev; @@ -122,7 +129,17 @@ EOF init_lvm_root ('/dev/md/rootdev'); } -elsif ($ENV{LAYOUT} eq 'btrfs') { +elsif ($ENV{LAYOUT} eq 'btrfs' &amp...
2018 Apr 12
4
[PATCH 0/2] Support for expanding f2fs partitions
Hi, this small patch series exposes one of the utility in f2fs-tools, and use it to expand f2fs partitions in virt-resize. Thanks, Pino Toscano (2): New API: f2fs_expand resize: expand f2fs partitions daemon/Makefile.am | 1 + daemon/f2fs.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++ generator/actions_core.ml | 9 +++++++++ generator/proc_nr.ml | 1 +
2018 Apr 12
0
[PATCH v2 2/2] resize: expand f2fs partitions
...sresize_force, output_format, resizes, resizes_force, shrink, sparse, unknown_fs_mode in - (* Default to true, since NTFS/btrfs/XFS support are usually available. *) + (* Default to true, since NTFS/btrfs/XFS/f2fs support are usually available. *) let ntfs_available = ref true in let btrfs_available = ref true in let xfs_available = ref true in + let f2fs_available = ref true in (* Add a drive to an handle using the elements of the URI, * and few additional parameters. @@ -364,6 +368,7 @@ read the man page virt-resize(1). ntfs_available := g#feature_available [|"ntfs...
2018 Nov 14
0
[PATCH v2] test-data: Allow tests to be run when Btrfs is not available.
...ake-fedora-img.pl @@ -123,34 +123,52 @@ EOF } elsif ($ENV{LAYOUT} eq 'btrfs') { - push (@images, "fedora-btrfs.img-t"); + # Test if btrfs is available. + my $g2 = Sys::Guestfs->new (); + $g2->add_drive ("/dev/null"); + $g2->launch (); + my $btrfs_available = $g2->feature_available (["btrfs"]); + $g2->close (); - open (my $fstab, '>', "fedora.fstab") or die; - print $fstab <<EOF; + if (!$btrfs_available) { + # Btrfs not available, create an empty image. + push (@images, "f...
2018 Nov 14
2
[PATCH v2] test-data: Allow tests to be run when Btrfs is not available.
v2: - Moved the btrfs available test into the subclause where it is used. Note I got tired of fighting emacs indentation mode and I pushed a whitespace only patch which fixes the indentation to be 4 spaces instead of 2 spaces: https://github.com/libguestfs/libguestfs/commit/df54c75d4c53ed580e5269306e11e0758d169452 This v2 patch requires that one. Rich.
2012 May 03
5
[PATCH 0/5] Various fixes for virt-make-fs.
The main one is that it now estimates btrfs overhead more accurately, allowing it to construct btrfs images. See: https://bugzilla.redhat.com/show_bug.cgi?id=816098 Rich.
2014 Jan 27
0
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
...null"); + $g->launch (); + $g->feature_available (["ntfs3g"]) and print "ntfs3g_available=yes\n"; + $g->feature_available (["ntfsprogs"]) and print "ntfsprogs_available=yes\n"; + $g->feature_available (["btrfs"]) and print "btrfs_available=yes\n"; +') + +# Allow btrfs to be disabled when btrfs is broken (eg. RHBZ#863978). +if [ -n "$SKIP_TEST_VIRT_MAKE_FS_BTRFS" ]; then + btrfs_available= +fi + +# UML backend doesn't support qcow2. +if [ "$(../fish/guestfish get-backend)" != "uml" ];...
2015 Jun 15
2
[PATCH] resize: make available expand method warnings more prominent
...--git a/resize/resize.ml b/resize/resize.ml index 602a583..9ea5f8a 100644 --- a/resize/resize.ml +++ b/resize/resize.ml @@ -575,11 +575,7 @@ read the man page virt-resize(1). | ContentFS (("ntfs"), _) when !ntfs_available -> true | ContentFS (("btrfs"), _) when !btrfs_available -> true | ContentFS (("xfs"), _) when !xfs_available -> true - | ContentFS (fs, _) -> - if verbose () then - warning (f_"unknown/unavailable method for expanding filesystem %s") - fs; - false + | ContentFS (fs, _) -...
2014 Jan 27
2
[PATCH INCOMPLETE] Rewrite virt-make-fs in C (originally Perl).
I thought it would be easy to rewrite virt-make-fs in C. Two days later ... The Perl program uses a lot of external commands, which makes it pretty tedious to implement in C. Rich.
2014 Sep 23
0
[PATCH 10/13] syntax-check: fix prohibit_test_minus_ao check
...t;$ntfs3g_available" = "yes" -a "$ntfsprogs_available" = "yes" ]; then +if [ "$ntfs3g_available" = "yes" && "$ntfsprogs_available" = "yes" ]; then choices[${#choices[*]}]="--type=ntfs" fi if [ "$btrfs_available" = "yes" ]; then diff --git a/src/api-support/update-from-tarballs.sh b/src/api-support/update-from-tarballs.sh index 328b11b..e2160c7 100755 --- a/src/api-support/update-from-tarballs.sh +++ b/src/api-support/update-from-tarballs.sh @@ -36,7 +36,7 @@ for t in $tarballs; do...
2017 Feb 06
1
[PATCH v3] resize: support non-local output disks (RHBZ#1404182)
...URI '%s'. Look for error messages printed above.") + outfile in + infile, outfile, align_first, alignment, copy_boot_loader, deletes, dryrun, expand, expand_content, extra_partition, format, ignores, @@ -326,16 +333,25 @@ read the man page virt-resize(1). let btrfs_available = ref true in let xfs_available = ref true in + (* Add a drive to an handle using the elements of the URI, + * and few additional parameters. + *) + let add_drive_uri (g : Guestfs.guestfs) ?format ?readonly ?cachemode + uri = + let { URI.path = path; protocol = protocol; +...
2014 Sep 23
27
[PATCH 00/13] syntax-check
Hi Rich, This series includes patches to make `make syntax-check` pass. Some of the fix require change to maint.mk, but the file is not in git repo. Is it intended? Thanks! Hu Tao (13): syntax-check: dirty hack to pass bindtextdomain check syntax-check: fix error_message_period check syntax-check: fix makefile_at_at_check syntax-check: fix prohibit_assert_without_use check
2015 May 15
0
[PATCH 3/4] ocaml tools: Use global variables to store trace (-x) and verbose (-v) flags.
...ion = LVOpNone } ) lvs in - if verbose then ( + if verbose () then ( printf "%d logical volumes found\n" (List.length lvs); List.iter debug_logvol lvs ); @@ -584,7 +580,7 @@ read the man page virt-resize(1). | ContentFS (("btrfs"), _) when !btrfs_available -> true | ContentFS (("xfs"), _) when !xfs_available -> true | ContentFS (fs, _) -> - if verbose then + if verbose () then warning (f_"unknown/unavailable method for expanding filesystem %s") fs; false @@...
2012 Jul 14
6
[PATCH 0/6] Allow non-optargs functions to gain optional arguments.
This rather complex set of patches allow non-optargs functions to gain optional arguments, while preserving source and binary backwards compatibility. The problem is that we cannot add an optional argument to an existing function. For example, we might want to add flags to the 'lvresize' API which currently has no optional arguments.
2015 May 15
5
[PATCH 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
.. and a lot of refactoring. https://bugzilla.redhat.com/show_bug.cgi?id=1167623 Rich.
2015 May 15
6
[PATCH v2 0/4] Only tell people to use -v -x when reporting bugs if they're not using those flags.
https://bugzilla.redhat.com/show_bug.cgi?id=1167623
2015 Jul 31
14
[PATCH v2 00/14] tests: Introduce test harness for running tests.
This is a more complete patch to add the test harness. The only parts missing now are the language bindings (except OCaml). The language bindings need a bit more thought. At the moment most language binding tests are done through some sort of shell script like perl/run-perl-tests which either runs each test itself or uses some language-specific machinary to run each test. The problem with that
2015 Aug 04
16
[PATCH v3 01/16] tests: Introduce test harness for running tests.
Since v2: - Add perl tests. - Reworked and fixed the tests for virt-builder. - Some further minor bug fixes.
2015 Aug 06
20
[PATCH v4 00/17] tests: Introduce test harness for running tests.
Since v3: - A large number of fixes, especially for running the tests on installed libguestfs. - Fixed EXTRA_DIST rules throughout. - Extra patch 17/17 which is a tidy-up of the generated XML listing guests. Rich.