Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2018 17:48:45 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Rick Macklem <rmacklem@uoguelph.ca>, Julian Elischer <julian@freebsd.org>, Konstantin Belousov <kostikbel@gmail.com>
Cc:        FreeBSD Filesystems <freebsd-fs@freebsd.org>
Subject:   Re: How to fill in the fsid for file systems?
Message-ID:  <03f24451-c0d0-0701-0e00-b2ce0f946887@FreeBSD.org>
In-Reply-To: <YTOPR0101MB1162A8CA4B3AAF230E73158DDDC90@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM>
References:  <YTOPR0101MB11620BAF0E206EE36E927A5ADDF30@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM> <20181030012240.GM5335@kib.kiev.ua> <YTOPR0101MB11621427AF47133A93311E16DDCD0@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM> <e7813a64-59c2-67a1-3471-b32a6ca42ef8@FreeBSD.org> <YTOPR0101MB116207BA89FB66EE9B1AAF01DDCD0@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM> <a831d660-1ed9-ef21-f457-8e1e986b96f2@FreeBSD.org> <YTOPR0101MB11621C0D5F4F4D9BED169110DDCF0@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM> <c98b999c-c4b8-55fe-adef-ac53e439487b@freebsd.org> <YTOPR0101MB1162A8CA4B3AAF230E73158DDDC90@YTOPR0101MB1162.CANPRD01.PROD.OUTLOOK.COM>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/11/2018 17:38, Rick Macklem wrote:
> That leaves ZFS, which is what I was asking.
> I don't understand the ZFS code well enough to understand  what
> dmu_objset_fsid_guid() is doing to get the fsid. I also don't know if the value
> changes for snaphots of the same file system?
> - If it does ever change, then that is the usage case for this option.

A good ZFS example is this.
A filesystem is duplicated using zfs send + zfs recv.  The content would be
exactly the same (provided no modification of the source and the target after
the duplication), but GUIDs of the source and target would be different.  The
latter is required because the source and the target could be in the same pool.
But even if they are in different pools (and different machines), the GUIDs
would still be different.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03f24451-c0d0-0701-0e00-b2ce0f946887>