We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6a567 commit c7c6363Copy full SHA for c7c6363
fs/hfsplus/xattr.c
@@ -172,7 +172,11 @@ static int hfsplus_create_attributes_file(struct super_block *sb)
172
return PTR_ERR(attr_file);
173
}
174
175
- BUG_ON(i_size_read(attr_file) != 0);
+ if (i_size_read(attr_file) != 0) {
176
+ err = -EIO;
177
+ pr_err("detected inconsistent attributes file, running fsck.hfsplus is recommended.\n");
178
+ goto end_attr_file_creation;
179
+ }
180
181
hip = HFSPLUS_I(attr_file);
182
0 commit comments