X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_compat.c;h=aab00b2f1574be81aa021c020c2db0dc99321ba8;hb=53286dd0267d2ad38267341ed4ee4e25bd3cde00;hp=249fa0ea93e317c9bfa64a07300da7f69ce8b0b9;hpb=9ccaefdb8ae9cacc1b471689672bd08d497831dc;p=fs%2Flustre-release.git diff --git a/lustre/osd-ldiskfs/osd_compat.c b/lustre/osd-ldiskfs/osd_compat.c index 249fa0e..aab00b2 100644 --- a/lustre/osd-ldiskfs/osd_compat.c +++ b/lustre/osd-ldiskfs/osd_compat.c @@ -345,6 +345,7 @@ int osd_compat_add_entry(struct osd_thread_info *info, struct osd_device *osd, inode = &info->oti_inode; inode->i_sb = osd_sb(osd); osd_id_to_inode(inode, id); + inode->i_mode = S_IFREG; /* for type in ldiskfs dir entry */ child = &info->oti_child_dentry; child->d_name.hash = 0;