Re: [PATCH v5 7/8] Btrfs: check UUID tree during mount if required

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +	key.objectid = 0;
> +	key.type = BTRFS_UUID_KEY;
> +	key.offset = 0;
> +
> +	max_key.objectid = (u64)-1;
> +	max_key.type = BTRFS_UUID_KEY;
> +	max_key.offset = (u64)-1;

> +		if (key.offset < (u64)-1) {
> +			key.offset++;
> +		} else if (key.type < BTRFS_UUID_KEY) {
> +			key.offset = 0;
> +			key.type = BTRFS_UUID_KEY;
> +		} else if (key.objectid < (u64)-1) {
> +			key.offset = 0;
> +			key.type = 0;
> +			key.objectid++;
> +		} else {
> +			break;
> +		}
> +	}

Presumably all of this isn't needed now that the uuid items are in their
own tree?  Just iterate over all the items in the tree?

- z
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux