xfs_blkdev_get
error = xfs_blkdev_get(mp, mp->m_logname, &logdev_file);
error = xfs_blkdev_get(mp, mp->m_rtname, &rtdev_file);