ext4: add shutdown bit and check for it

Add a shutdown bit that will cause ext4 processing to fail immediately
with EIO.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
此提交包含在:
Theodore Ts'o
2017-02-05 01:28:48 -05:00
父節點 9549a168bd
當前提交 0db1ff222d
共有 11 個檔案被更改,包括 103 行新增3 行删除

查看文件

@@ -411,6 +411,9 @@ ext4_xattr_get(struct inode *inode, int name_index, const char *name,
{
int error;
if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb))))
return -EIO;
if (strlen(name) > 255)
return -ERANGE;