xfs_dev_is_read_only
if ((error = xfs_dev_is_read_only(log->l_mp, "recovery"))) {
extern int xfs_dev_is_read_only(struct xfs_mount *, char *);
(xfs_dev_is_read_only(mp, "changing quota state") ||