Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185839
b: refs/heads/master
c: 96391e2
h: refs/heads/master
i:
  185837: e7110b6
  185835: 3ac4188
  185831: abf5e84
  185823: 88540cd
v: v3
  • Loading branch information
Boaz Harrosh committed Feb 28, 2010
1 parent 3af82ca commit f98bde8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86093aaff5be5b214613eb60553e236bdb389c84
refs/heads/master: 96391e2bae0f8882b6f44809202a68be66e91dce
12 changes: 11 additions & 1 deletion trunk/fs/exofs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,18 @@ static int exofs_get_inode(struct super_block *sb, struct exofs_i_info *oi,
ios->in_attr_len = ARRAY_SIZE(attrs);

ret = exofs_sbi_read(ios);
if (ret)
if (unlikely(ret)) {
EXOFS_ERR("object(0x%llx) corrupted, return empty file=>%d\n",
_LLU(ios->obj.id), ret);
memset(inode, 0, sizeof(*inode));
inode->i_mode = 0040000 | (0777 & ~022);
/* If object is lost on target we might as well enable it's
* delete.
*/
if ((ret == -ENOENT) || (ret == -EINVAL))
ret = 0;
goto out;
}

ret = extract_attr_from_ios(ios, &attrs[0]);
if (ret) {
Expand Down

0 comments on commit f98bde8

Please sign in to comment.