diff options
-rw-r--r-- | fs/xfs/xfs_mount.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/xfs/xfs_mount.c b/fs/xfs/xfs_mount.c index b57423caef9b..2ec967d93e5a 100644 --- a/fs/xfs/xfs_mount.c +++ b/fs/xfs/xfs_mount.c | |||
@@ -301,6 +301,15 @@ xfs_mount_validate_sb( | |||
301 | } | 301 | } |
302 | 302 | ||
303 | /* | 303 | /* |
304 | * Version 1 directory format has never worked on Linux. | ||
305 | */ | ||
306 | if (unlikely(!XFS_SB_VERSION_HASDIRV2(sbp))) { | ||
307 | cmn_err(CE_WARN, | ||
308 | "XFS: Attempted to mount file system using version 1 directory format"); | ||
309 | return XFS_ERROR(ENOSYS); | ||
310 | } | ||
311 | |||
312 | /* | ||
304 | * Until this is fixed only page-sized or smaller data blocks work. | 313 | * Until this is fixed only page-sized or smaller data blocks work. |
305 | */ | 314 | */ |
306 | if (unlikely(sbp->sb_blocksize > PAGE_SIZE)) { | 315 | if (unlikely(sbp->sb_blocksize > PAGE_SIZE)) { |