Whamcloud - gitweb
Branch:b_new_cmd
authorwangdi <wangdi>
Mon, 31 Jul 2006 00:02:39 +0000 (00:02 +0000)
committerwangdi <wangdi>
Mon, 31 Jul 2006 00:02:39 +0000 (00:02 +0000)
remove lov_objids and last_rcvd create in osd_mount, since they could be
created in mkfs

lustre/osd/osd_handler.c

index b733ff7..d5ae122 100644 (file)
@@ -1623,22 +1623,6 @@ static int osd_mount(const struct lu_context *ctx,
                 d = simple_mkdir(osd_sb(o)->s_root, "*OBJ-TEMP*", 0777, 1);
                 if (!IS_ERR(d)) {
                         o->od_obj_area = d;
-                        /*
-                         * XXX temporary resolution: OBJ_IDS and last_rcvd should 
-                         * also be done in mkfs
-                         */
-                        d = simple_mknod(osd_sb(o)->s_root,
-                                         LOV_OBJID, 0777, 1);
-                        if (!IS_ERR(d))
-                                dput(d);
-                        else
-                                result = PTR_ERR(d);
-                        d = simple_mknod(osd_sb(o)->s_root,
-                                        LAST_RCVD, 0777, 1);
-                        if (!IS_ERR(d))
-                                dput(d);
-                        else
-                                result = PTR_ERR(d);
                 } else
                         result = PTR_ERR(d);
         }