diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-03 09:11:30 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-04 18:06:40 -0700 |
commit | f0ec1b8ef11df0a51954df7e3ff3ca4aadb0d34b (patch) | |
tree | a58da7c9f703208189686d952b1e012aa67a6038 /fs/xfs/xfs_fsops.c | |
parent | 53aa1c34f4ebc0eed76a9c5fd56dc6fd0414d395 (diff) | |
download | linux-f0ec1b8ef11df0a51954df7e3ff3ca4aadb0d34b.tar.gz linux-f0ec1b8ef11df0a51954df7e3ff3ca4aadb0d34b.tar.bz2 linux-f0ec1b8ef11df0a51954df7e3ff3ca4aadb0d34b.zip |
xfs: add reflink feature flag to geometry
Report the reflink feature in the XFS geometry so that xfs_info and
friends know the filesystem has this feature.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 4b4059b5e501..3acbf4e03187 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c @@ -108,7 +108,9 @@ xfs_fs_geometry( (xfs_sb_version_hassparseinodes(&mp->m_sb) ? XFS_FSOP_GEOM_FLAGS_SPINODES : 0) | (xfs_sb_version_hasrmapbt(&mp->m_sb) ? - XFS_FSOP_GEOM_FLAGS_RMAPBT : 0); + XFS_FSOP_GEOM_FLAGS_RMAPBT : 0) | + (xfs_sb_version_hasreflink(&mp->m_sb) ? + XFS_FSOP_GEOM_FLAGS_REFLINK : 0); geo->logsectsize = xfs_sb_version_hassector(&mp->m_sb) ? mp->m_sb.sb_logsectsize : BBSIZE; geo->rtsectsize = mp->m_sb.sb_blocksize; |