Skip to content

Commit 000331b

Browse files
asjkdave
authored andcommitted
btrfs: update comment for temp-fsid, fsid, and metadata_uuid
Update the comment to explain the relationship between temp_fsid, fsid, and metadata_uuid. Signed-off-by: Anand Jain <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 3cf63dd commit 000331b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fs/btrfs/volumes.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ struct btrfs_fs_devices {
299299
* - When the BTRFS_FEATURE_INCOMPAT_METADATA_UUID flag is set:
300300
* fs_devices->fsid == sb->fsid
301301
* fs_devices->metadata_uuid == sb->metadata_uuid
302+
*
303+
* - When in-memory fs_devices->temp_fsid is true
304+
* fs_devices->fsid = random
305+
* fs_devices->metadata_uuid == sb->fsid
302306
*/
303307
u8 metadata_uuid[BTRFS_FSID_SIZE];
304308

0 commit comments

Comments
 (0)