public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* btrfs-progs 4.1-rc1: btrfstune -u reporting incorrect current fsid?
@ 2015-06-17 21:21 Mike Fleetwood
  2015-06-18 17:33 ` David Sterba
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Fleetwood @ 2015-06-17 21:21 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I've done a quick test on changing the UUID of a btrfs.  It worked, but
btrfstune -u didn't print the same current uuid that btrfs fi sh does.
It also upper cases the UUID where as btrfs fi sh and blkid don't.

Thanks,
Mike

# btrfs filesystem show /dev/sdb1 | fgrep uuid
Label: none  uuid: b2813976-4d8b-4976-9d59-cbfbd588399c

# ~fedora/programming/c/btrfs-progs-unstable/btrfstune -f -u /dev/sdb1
Current fsid: FFFFFFFF-0000-0000-00B0-8F12937F0000
New fsid: D294F3F3-F2B7-4407-B83A-DE5A4F8CBAB1
Set superblock flag CHANGING_FSID
Change fsid in extents
Change fsid on devices
Clear superblock flag CHANGING_FSID
Fsid change finished

# btrfs filesystem show /dev/sdb1 | fgrep uuid
Label: none  uuid: d294f3f3-f2b7-4407-b83a-de5a4f8cbab1

# blkid | fgrep sdb1
/dev/sdb1: UUID="d294f3f3-f2b7-4407-b83a-de5a4f8cbab1"
UUID_SUB="70065403-5ec1-462c-93a4-26cff8b6aea2" TYPE="btrfs"
PARTUUID="b309c48c-486f-4882-896c-34d4d0aeb529"

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-19 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 21:21 btrfs-progs 4.1-rc1: btrfstune -u reporting incorrect current fsid? Mike Fleetwood
2015-06-18 17:33 ` David Sterba
2015-06-19  1:40   ` Qu Wenruo
2015-06-19 10:26     ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox