X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdfilter%2Ffilter.c;h=984defef74098b10f2b39d8b21ac0f4d26995bc2;hp=17ace2e7c6d5c78ef2d2df4bf9348739551134d8;hb=c65b502fe9feda61c7ad7137f5022c654c6ba501;hpb=d21876c689b7339132064a3fcc9defdb96dd8501 diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 17ace2e..984defe 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -4642,8 +4642,8 @@ int filter_iocontrol(unsigned int cmd, struct obd_export *exp, CDEBUG(D_HA, "syncing ost %s\n", obd->obd_name); rc = fsfilt_sync(obd, obd->u.obt.obt_sb); - lvfs_set_rdonly(obd, obd->u.obt.obt_sb); - RETURN(0); + rc = lvfs_set_rdonly(obd, obd->u.obt.obt_sb); + RETURN(rc); } case OBD_IOC_CATLOGLIST: {