Commit 10c2c790 authored by Eric Sandeen's avatar Eric Sandeen Committed by Christoph Hellwig

XFS: Check rtdev as well when testing for read-only devices

Modid: 2.5.x-xfs:slinx:129155a
parent 5f612740
......@@ -1843,7 +1843,8 @@ int
xfs_dev_is_read_only(xfs_mount_t *mp, char *message)
{
if (bdev_read_only(mp->m_ddev_targp->pbr_bdev) ||
bdev_read_only(mp->m_logdev_targp->pbr_bdev)) {
bdev_read_only(mp->m_logdev_targp->pbr_bdev) ||
(mp->m_rtdev_targp && bdev_read_only(mp->m_rtdev_targp->pbr_bdev))) {
cmn_err(CE_NOTE,
"XFS: %s required on read-only device.", message);
cmn_err(CE_NOTE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment