Don't look at the variable for the rtname command line option, but
the actual file system geometry.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
flags &= XFS_DIFLAG_ANY;
}
- /* need an rt-dev for the realtime flag! */
- if ((flags & XFS_DIFLAG_REALTIME) && !rt_name) {
+ /* need an rt-dev for the realtime flag */
+ if ((flags & XFS_DIFLAG_REALTIME) && !mp->m_sb.sb_rextents) {
if (!uncertain) {
do_warn(
_("inode %" PRIu64 " has RT flag set but there is no RT device\n"),