X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-ldiskfs%2Fosd_handler.c;h=c0e5a91402ba4445dcafcb061a8ac9c05ba27ea8;hp=59d093f047593660ecdc60f8101d32311ade7cb0;hb=018988a3b7241407a5c6d6829fac62ae9f2c486f;hpb=3ac7c325efaf3a2537fafc79168d87de67982acd;ds=sidebyside diff --git a/lustre/osd-ldiskfs/osd_handler.c b/lustre/osd-ldiskfs/osd_handler.c index 59d093f..c0e5a91 100644 --- a/lustre/osd-ldiskfs/osd_handler.c +++ b/lustre/osd-ldiskfs/osd_handler.c @@ -1784,7 +1784,8 @@ static int osd_mknod(struct osd_thread_info *info, struct osd_object *obj, * This inode should be marked dirty for i_rdev. Currently * that is done in the osd_attr_init(). */ - init_special_inode(obj->oo_inode, mode, attr->la_rdev); + init_special_inode(obj->oo_inode, obj->oo_inode->i_mode, + attr->la_rdev); } LINVRNT(osd_invariant(obj)); return result;