Displaying 20 results from an estimated 38 matches for "vfs_uuid".
2014 Nov 28
0
[PATCH 3/3] uuid: make alias get-uuid for vfs_uuid
...d, 1 insertion(+)
diff --git a/generator/actions.ml b/generator/actions.ml
index a35fe50..385b620 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -8540,6 +8540,7 @@ To find a filesystem from the label, use C<guestfs_findfs_label>." };
{ defaults with
name = "vfs_uuid";
style = RString "uuid", [Mountable "mountable"], [];
+ fish_alias = ["get-uuid"];
proc_nr = Some 254;
tests =
(let uuid = uuidgen () in [
--
1.9.3
2017 Aug 18
1
[PATCH] resize: handle empty UUIDs for swap partitions (RHBZ#1482737)
.../resize.ml b/resize/resize.ml
index fbb2d021b..48c75161d 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -1347,9 +1347,20 @@ read the man page virt-resize(1).
(* Rebuild the swap using the UUID and label of the existing
* swap partition.
*)
- let uuid = g#vfs_uuid target in
+ let orig_uuid = g#vfs_uuid target in
+ let uuid =
+ match orig_uuid with
+ | "" -> None
+ | uuid -> Some uuid in
let label = g#vfs_label target in
- g#mkswap ~uuid ~label target
+ g#mkswap ?uuid ~label targe...
2015 Jun 23
2
[PATCH] uuid: add support to change uuid of btrfs partition
....ca77c87 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -11774,6 +11774,10 @@ parameter. In future we may allow other flags to be adjusted." };
InitBasicFS, Always, TestResultString (
[["set_uuid"; "/dev/sda1"; uuid];
["vfs_uuid"; "/dev/sda1"]], uuid), [];
+ InitPartition, Always, TestResultString (
+ [["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
+ [&quo...
2015 Jun 29
1
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...lease investigate why you are getting such errno.
One guess is that a leftover from a failing operation, and that
set_uuid actually succeeded. In that case, checking first for $@ might
do the trick:
eval {
...
}
if ($@) {
# failed, check last_errno
} else {
# good, compare with vfs_uuid
}
> > > +my $err = $g->last_errno ();
> > > +
> > > +if ($err == 0) {
> > > + my $uuid = $g->vfs_uuid ("/dev/sda1");
> > > + die "unexpected uuid expecting
> > > + '12345678-1234-1234-1234-123456789012' b...
2015 Jun 24
2
Re: [PATCH v2 1/5] uuid: add support to change uuid of btrfs partition
...;
> die "unexpected label: expecting 'newlabel' but got '$label'"
> unless $label eq "newlabel";
>
> +# Setting btrfs UUID
> +$g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> +my $uuid = $g->vfs_uuid ("/dev/sda1");
> +die "unexpected label: expecting 'newlabel' but got '$uuid'"
> + unless $uuid eq "12345678-1234-1234-1234-123456789012";
> +
Ignoring the "newlabel" copy&paste error: this code has the same issue
as the old t...
2016 Jan 26
1
[PATCH] xfs_admin: do not set lazycounter in tests not checking that
...; "/dev/sda1"; ""; ""; ""; ""; "false"; "NOARG"; uuid];
+ ["xfs_admin"; "/dev/sda1"; ""; ""; ""; ""; ""; "NOARG"; uuid];
["vfs_uuid"; "/dev/sda1"]], uuid), [];
InitEmpty, Always, TestResultString (
[["part_disk"; "/dev/sda"; "mbr"];
["mkfs"; "xfs"; "/dev/sda1"; ""; "NOARG"; ""; ""; &...
2016 May 20
1
[PATCH] tests: disable UUID change on ext journal_dev
...tor/actions.ml b/generator/actions.ml
index 3566371..b17808e 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -5349,14 +5349,13 @@ of a filesystem." };
style = RString "uuid", [Device "device"], [];
proc_nr = Some 83;
deprecated_by = Some "vfs_uuid";
- tests =
- (* Regression test for RHBZ#597112. *)
- (let uuid = uuidgen () in [
- InitNone, Always, TestResultString (
- [["mke2journal"; "1024"; "/dev/sdc"];
- ["set_e2uuid"; "/dev/sdc"; uuid];
-...
2015 Jun 26
3
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...> +# Setting btrfs UUID
> +eval {
> + $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> +};
> +# FIXME: ignore ESRCH
What is ESRCH about?
> +my $err = $g->last_errno ();
> +
> +if ($err == 0) {
> + my $uuid = $g->vfs_uuid ("/dev/sda1");
> + die "unexpected uuid expecting
> + '12345678-1234-1234-1234-123456789012' but got '$uuid'"
> + unless $uuid eq "12345678-1234-1234-1234-123456789012";
> +} elsif ($err == Errno::ENOTSUP()) {
> + warn "...
2015 Jun 23
0
Re: [PATCH] uuid: add support to change uuid of btrfs partition
...erator/actions.ml
> +++ b/generator/actions.ml
> @@ -11774,6 +11774,10 @@ parameter. In future we may allow other flags to be adjusted." };
> InitBasicFS, Always, TestResultString (
> [["set_uuid"; "/dev/sda1"; uuid];
> ["vfs_uuid"; "/dev/sda1"]], uuid), [];
> + InitPartition, Always, TestResultString (
> + [["mkfs_btrfs"; "/dev/sda1"; ""; ""; "NOARG"; ""; "NOARG"; "NOARG"; ""; ""];
> +...
2015 Jun 25
0
Re: [PATCH v2 1/5] uuid: add support to change uuid of btrfs partition
...ected label: expecting 'newlabel' but got '$label'"
> > unless $label eq "newlabel";
> >
> > +# Setting btrfs UUID
> > +$g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
> > +my $uuid = $g->vfs_uuid ("/dev/sda1");
> > +die "unexpected label: expecting 'newlabel' but got '$uuid'"
> > + unless $uuid eq "12345678-1234-1234-1234-123456789012";
> > +
>
> Ignoring the "newlabel" copy&paste error: this code has th...
2013 Jan 22
1
APIs affected by btrfs subvolumes
...vice, but are arguably applicable to
btrfs subvolumes. A subvolume doesn't have a label itself, but its root
filesystem does. A btrfs subvolume can still be mounted by label, as
long as the subvolume is also given.
set_label: note that this would also affect other subvolumes
vfs_label
vfs_type
vfs_uuid
Device name mangling:
These apis are used to return sanitised device names. I'm not 100%
convinced we need to modify them. However, we may want additional apis
which handle filesystem descriptors.
canonical_device_name
part_to_dev
Misc:
zerofree: only actually supports ext2 and ext3, but t...
2010 Jun 01
4
[PATCH 0/4] Fix RHBZ#597112 (get-e2uuid command)
This series of patches fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=597112
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
2015 Jun 29
0
Re: [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...ESRCH about?
The problem is every time I got a ESRCH here.
I have no idea about this.
Can we just ignore it by:
} elsif ($err == Errno::ESRCH()) {
;
} else {
die $@;
}
>
> > +my $err = $g->last_errno ();
> > +
> > +if ($err == 0) {
> > + my $uuid = $g->vfs_uuid ("/dev/sda1");
> > + die "unexpected uuid expecting
> > + '12345678-1234-1234-1234-123456789012' but got '$uuid'"
> > + unless $uuid eq "12345678-1234-1234-1234-123456789012";
> > +} elsif ($err == Errno::ENOTSUP()) {
&...
2014 Nov 28
3
[PATCH 1/3] uuid: add support to change uuid of swap partition
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
---
daemon/uuids.c | 19 +++++++++++++++++++
sysprep/sysprep_operation_fs_uuids.ml | 2 --
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/daemon/uuids.c b/daemon/uuids.c
index 672f3db..431d867 100644
--- a/daemon/uuids.c
+++ b/daemon/uuids.c
@@ -29,6 +29,7 @@
GUESTFSD_EXT_CMD(str_tune2fs, tune2fs);
2015 Jun 24
10
[PATCH 0/5] uuid: add btrfs uuid change support and some rework
- Btrfs-progs v4.1 introduced new feature of changing
uuid of btrfs partition.
This patch add support of this.
- uuids.c did a lot of deplicated work for changing uuid
of fs. Use existed functions.
-- Introduce new API: btrfstune_set_uuid_random
Chen Hanxiao (5):
uuid: add support to change uuid of btrfs partition
uuid: use existed function of ext2
uuid: use newly introduced
2015 Jun 24
0
[PATCH v2 1/5] uuid: add support to change uuid of btrfs partition
..._label ("/dev/sda1");
die "unexpected label: expecting 'newlabel' but got '$label'"
unless $label eq "newlabel";
+# Setting btrfs UUID
+$g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
+my $uuid = $g->vfs_uuid ("/dev/sda1");
+die "unexpected label: expecting 'newlabel' but got '$uuid'"
+ unless $uuid eq "12345678-1234-1234-1234-123456789012";
+
$g->shutdown ();
$g->close ();
--
2.1.0
2015 Jun 26
0
[PATCH v3 1/4] uuid: add support to change uuid of btrfs partition
...t '$label'"
unless $label eq "newlabel";
+# Setting btrfs UUID
+eval {
+ $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
+};
+# FIXME: ignore ESRCH
+my $err = $g->last_errno ();
+
+if ($err == 0) {
+ my $uuid = $g->vfs_uuid ("/dev/sda1");
+ die "unexpected uuid expecting
+ '12345678-1234-1234-1234-123456789012' but got '$uuid'"
+ unless $uuid eq "12345678-1234-1234-1234-123456789012";
+} elsif ($err == Errno::ENOTSUP()) {
+ warn "$0: skipping test for btr...
2015 Jun 26
0
[PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition
...t '$label'"
unless $label eq "newlabel";
+# Setting btrfs UUID
+eval {
+ $g->set_uuid ("/dev/sda1", "12345678-1234-1234-1234-123456789012");
+};
+# FIXME: ignore ESRCH
+my $err = $g->last_errno ();
+
+if ($err == 0) {
+ my $uuid = $g->vfs_uuid ("/dev/sda1");
+ die "unexpected uuid expecting
+ '12345678-1234-1234-1234-123456789012' but got '$uuid'"
+ unless $uuid eq "12345678-1234-1234-1234-123456789012";
+} elsif ($err == Errno::ENOTSUP()) {
+ warn "$0: skipping test for btr...
2016 Jul 06
1
Re: list-filesystems and btrfs snapshots
...rfs: set_uuid:
> set_uuid_stub: btrfsvol:/dev/sda2/@/.snapshots/16/snapshot: expecting a
> device name
The specific problem is that set_uuid is declared to take a Device as
the first parameter [see generator/action.ml], whereas I believe it
should take a Mountable instead.
Compare it to how vfs_uuid is declared in the same file.
This is simply a bug in generator/action.ml, and I believe a simple
one line patch should fix it.
> virt-sysprep: warning: cannot set random UUID on filesystem
> btrfsvol:/dev/sda2/@/.snapshots/1/snapshot type btrfs: set_uuid:
> set_uuid_stub: btrfsvol:/dev/...
2015 Jun 30
0
[PATCH v4 1/7] uuid: add support to change uuid of btrfs partition
...678-1234-1234-1234-123456789012");
+};
+
+my $err = $g->last_errno ();
+
+if ($@) {
+ if ($err == Errno::ENOTSUP()) {
+ warn "$0: skipping test for btrfs UUID change feature is not available";
+ } elsif ($err) {
+ die $@;
+ }
+} else {
+ my $uuid = $g->vfs_uuid ("/dev/sda1");
+ die "unexpected uuid expecting
+ '12345678-1234-1234-1234-123456789012' but got '$uuid'"
+ unless $uuid eq "12345678-1234-1234-1234-123456789012";
+}
+
$g->shutdown ();
$g->close ();
--
2.1.0