btrfs: update comment for temp-fsid, fsid, and metadata_uuid
authorAnand Jain <anand.jain@oracle.com>
Wed, 4 Oct 2023 15:00:24 +0000 (23:00 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:18 +0000 (16:44 +0200)
Update the comment to explain the relationship between temp_fsid, fsid,
and metadata_uuid.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.h

index fef46c0..5dd4ad7 100644 (file)
@@ -299,6 +299,10 @@ struct btrfs_fs_devices {
         *   - When the BTRFS_FEATURE_INCOMPAT_METADATA_UUID flag is set:
         *       fs_devices->fsid == sb->fsid
         *       fs_devices->metadata_uuid == sb->metadata_uuid
+        *
+        *   - When in-memory fs_devices->temp_fsid is true
+        *       fs_devices->fsid = random
+        *       fs_devices->metadata_uuid == sb->fsid
         */
        u8 metadata_uuid[BTRFS_FSID_SIZE];