f2fs: report error if quota off error during umount
PATCH v3 1/1 f2fs: report error if quota off error during umount
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
--- fs/f2fs/super.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
fs/f2fs/super.c +14 -3
@@ -1820,7 +1820,9 @@ static int f2fs_quota_off(struct super_block *sb, int type)if (!inode || !igrab (inode))return dquot_quota_off (sb, type); -f2fs_quota_sync (sb, type); + err =f2fs_quota_sync (sb, type); +if (err) + goto out_put; err =dquot_quota_off (sb, type);if (err ||f2fs_sb_has_quota_ino (sb))
@@ -1839,9 +1841,18 @@ static int f2fs_quota_off(struct super_block *sb, int type)void f2fs_quota_off_umount (struct super_block *sb) {int type; +int err; -for (type =0 ; type <MAXQUOTAS ; type++) -f2fs_quota_off (sb, type); +for (type =0 ; type <MAXQUOTAS ; type++) { + err =f2fs_quota_off (sb, type); +if (err) { +f2fs_msg (sb,KERN_ERR , +"Fail to turn off disk quota " +"(type: %d, err: %d), Please " +"run fsck to fix it." , type, err); +set_sbi_flag (F2FS_SB (sb),SBI_NEED_FSCK ); + } + } }static int f2fs_get_projid (struct inode *inode,kprojid_t *projid)
Signature · 6 lines
1.9.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Quoted 6 lines · Yunlei He
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
Signed-off-by Yunlei He <[email protected]>
Thanks,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Ping,
Quoted 13 lines · Chao Yu
Quoted 6 lines · Yunlei He
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
Signed-off-by Yunlei He <[email protected]>Reviewed-by Chao Yu <[email protected]>Thanks,
Quoted 9 lines
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Jaegeuk Kim
maintainerQuoted 1 line · Chao Yu
Ping,
Please check dev-test.
Quoted 15 lines · Chao Yu
Quoted 13 lines · Yunlei He
Quoted 6 lines
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
Signed-off-by Yunlei He <[email protected]>Reviewed-by Chao Yu <[email protected]>Thanks,
Quoted 9 lines
Quoted 9 lines
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Chao Yu
maintainerQuoted 4 lines · Jaegeuk Kim
Quoted 1 line · Chao Yu
Ping,
Please check dev-test.
I still can't find this patch in last dev-test...
Thanks,
Quoted 26 lines
Quoted 16 lines · Chao Yu
Quoted 13 lines · Yunlei He
Quoted 6 lines
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
Signed-off-by Yunlei He <[email protected]>Reviewed-by Chao Yu <[email protected]>Thanks,
Quoted 9 lines
Quoted 9 lines
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
Quoted 8 lines
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Jaegeuk Kim
maintainerQuoted 7 lines · Chao Yu
Quoted 4 lines · Jaegeuk Kim
Quoted 1 line · Chao Yu
Ping,
Please check dev-test.
I still can't find this patch in last dev-test...
Oh, I recalled what happened on this patch. I didn't merge this, since fault injection test was failed due to this.
Let me check, once everyting is stabilized.
Thanks,
Quoted 37 lines
Thanks,
Quoted 34 lines
Quoted 16 lines · Chao Yu
Quoted 13 lines · Yunlei He
Quoted 6 lines
Now, we depend on fsck to ensure quota file data is ok, so we scan whole partition if checkpoint without umount flag. It's same for quota off error case, which may make quota file data inconsistent.
Signed-off-by Yunlei He <[email protected]>Reviewed-by Chao Yu <[email protected]>Thanks,
Quoted 9 lines
Quoted 9 lines
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot