aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2008-12-03 06:20:34 -0500
committerNiv Sardi <xaiki@sgi.com>2008-12-03 23:39:23 -0500
commitb56757becf8bc62292263a24a23cf55edb4be55f (patch)
tree05940d51ed3819d59fdc78d8241128e7c27d1607 /fs/xfs/linux-2.6
parente88f11abe09d14718b82a991db118c5e485aa897 (diff)
remove leftovers of shared read-only support
We never supported shared read-only filesystems, so remove the dead code left over from IRIX for it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <david@fromorbit.com> Signed-off-by: Niv Sardi <xaiki@sgi.com>
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