| To: | david@xxxxxxxxxxxxx, darrick.wong@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH 5/5] xfs: disallow mounting of realtime + rmap filesystems |
| From: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
| Date: | Tue, 23 Aug 2016 19:20:59 -0700 |
| Cc: | linux-xfs@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <147200522764.14738.15186015137934319456.stgit@xxxxxxxxxxxxxxxx> |
| References: | <147200522764.14738.15186015137934319456.stgit@xxxxxxxxxxxxxxxx> |
| User-agent: | StGit/0.17.1-dirty |
Since the kernel doesn't currently support the realtime rmapbt,
don't allow such filesystems to be mounted. Support will appear
in a future release.
Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>
---
fs/xfs/xfs_super.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 24ef83e..fd6be45 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1574,9 +1574,16 @@ xfs_fs_fill_super(
}
}
- if (xfs_sb_version_hasrmapbt(&mp->m_sb))
+ if (xfs_sb_version_hasrmapbt(&mp->m_sb)) {
+ if (mp->m_sb.sb_rblocks) {
+ xfs_alert(mp,
+ "EXPERIMENTAL reverse mapping btree not compatible with realtime
device!");
+ error = -EINVAL;
+ goto out_filestream_unmount;
+ }
xfs_alert(mp,
"EXPERIMENTAL reverse mapping btree feature enabled. Use at your own
risk!");
+ }
error = xfs_mountfs(mp);
if (error)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 4/5] xfs: simple btree query range should look right if LE lookup fails, Darrick J. Wong |
|---|---|
| Next by Date: | [PATCH 0/7] xfsprogs: reverse mapping fixes, Darrick J. Wong |
| Previous by Thread: | Re: [PATCH 4/5] xfs: simple btree query range should look right if LE lookup fails, Christoph Hellwig |
| Next by Thread: | Re: [PATCH 5/5] xfs: disallow mounting of realtime + rmap filesystems, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |