Re: [PATCH 2/4] btrfs: detect uninitialized btrfs_root::anon_dev for user visible subvolumes

Josef Bacik
2020-06-16T19:25:09Z

On 6/15/20 10:17 PM, Qu Wenruo wrote:
> btrfs_root::anon_dev is an indicator for different subvolume namespaces.
> Thus it should always be initialized to an anonymous block device.
>
> Add a safe net to catch such uninitialized values.
>
> Signed-off-by: Qu Wenruo <wqu@suse.com>

Can we handle stat->dev not having a device set? Or will this blow up in other
ways? Thanks,

Josef