Re: [PATCH v2] statx: stx_subvol

From: Dave Chinner
Date: Sun Mar 10 2024 - 22:17:26 EST


On Fri, Mar 08, 2024 at 08:56:33AM -0800, Darrick J. Wong wrote:
> Should the XFS data and rt volumes be reported with different stx_vol
> values?

No, because all the inodes are on the data volume and the same inode
can have data on the data volume or the rt volume. i.e. "data on rt,
truncate, clear rt, copy data back into data dev". It's still the
same inode, and may have exactly the same data, so why should change
stx_vol and make it appear to userspace as being a different inode?

-Dave.
--
Dave Chinner
david@xxxxxxxxxxxxx