Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188589
b: refs/heads/master
c: 232d4b0
h: refs/heads/master
i:
  188587: 6d5af26
v: v3
  • Loading branch information
Sage Weil committed Oct 21, 2009
1 parent 52ed6bd commit 03171b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: bb097ffaf833a40335b6dd5e4fa6f5ed0b223bdc
refs/heads/master: 232d4b01319767b3ffa5d08962a81c805962be49
8 changes: 5 additions & 3 deletions trunk/fs/ceph/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,6 @@ static int fill_inode(struct inode *inode,
queue_trunc = ceph_fill_file_size(inode, issued,
le32_to_cpu(info->truncate_seq),
le64_to_cpu(info->truncate_size),
S_ISDIR(inode->i_mode) ?
ci->i_rbytes :
le64_to_cpu(info->size));
ceph_fill_file_time(inode, issued,
le32_to_cpu(info->time_warp_seq),
Expand Down Expand Up @@ -1603,6 +1601,7 @@ int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry,
struct kstat *stat)
{
struct inode *inode = dentry->d_inode;
struct ceph_inode_info *ci = ceph_inode(inode);
int err;

err = ceph_do_getattr(inode, CEPH_STAT_CAP_INODE_ALL);
Expand All @@ -1613,8 +1612,11 @@ int ceph_getattr(struct vfsmount *mnt, struct dentry *dentry,
stat->dev = ceph_snap(inode);
else
stat->dev = 0;
if (S_ISDIR(inode->i_mode))
if (S_ISDIR(inode->i_mode)) {
stat->size = ci->i_rbytes;
stat->blocks = 0;
stat->blksize = 65536;
}
}
return err;
}

0 comments on commit 03171b2

Please sign in to comment.