aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 37f2d11be4ac..c4f788e11197 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -1388,35 +1388,6 @@ xfs_finish_flags(
1388 return XFS_ERROR(EROFS); 1388 return XFS_ERROR(EROFS);
1389 } 1389 }
1390 1390
1391#if 0 /* shared mounts were never supported on Linux */
1392 /*
1393 * check for shared mount.
1394 */
1395 if (ap->flags & XFSMNT_SHARED) {
1396 if (!xfs_sb_version_hasshared(&mp->m_sb))
1397 return XFS_ERROR(EINVAL);
1398
1399 /*
1400 * For IRIX 6.5, shared mounts must have the shared
1401 * version bit set, have the persistent readonly
1402 * field set, must be version 0 and can only be mounted
1403 * read-only.
1404 */
1405 if (!ronly || !(mp->m_sb.sb_flags & XFS_SBF_READONLY) ||
1406 (mp->m_sb.sb_shared_vn != 0))
1407 return XFS_ERROR(EINVAL);
1408
1409 mp->m_flags |= XFS_MOUNT_SHARED;
1410
1411 /*
1412 * Shared XFS V0 can't deal with DMI. Return EINVAL.
1413 */
1414 if (mp->m_sb.sb_shared_vn == 0 &&
1415 (mp->m_flags & XFS_MOUNT_DMAPI))
1416 return XFS_ERROR(EINVAL);
1417 }
1418#endif
1419
1420 return 0; 1391 return 0;
1421} 1392}
1422 1393