Whamcloud - gitweb
Branch b1_8
authordzogin <dzogin>
Fri, 19 Jun 2009 22:18:08 +0000 (22:18 +0000)
committerdzogin <dzogin>
Fri, 19 Jun 2009 22:18:08 +0000 (22:18 +0000)
 b=18624
 i=dmitry.zogin
 i=zhenyu.xu

lustre/ChangeLog
lustre/utils/mkfs_lustre.c

index f0527b6..e29086e 100644 (file)
@@ -14,6 +14,13 @@ tbd Sun Microsystems, Inc.
          of Lustre filesystem with 4K stack may cause a stack overflow. For
          more information, please refer to bugzilla 17630.
 
+Severity   : normal 
+Bugzilla   : 18624 
+Description: Unable to run several mkfs.lustre on loop devices at the same
+            time.
+Details    : mkfs.lustre returns error 256 on the concurrent loop devices
+            formatting. The solution is to proper handle the error.   
+
 Severity   : enhancement
 Bugzilla   : 18357
 Description: implement async create (obd_async_create) method for osc, to avoid
index 9f17c0d..79d2bd1 100644 (file)
@@ -263,6 +263,10 @@ int loop_setup(struct mkfs_opts *mop)
                         snprintf(cmd, cmdsz, "losetup %s %s", l_device,
                                  mop->mo_device);
                         ret = run_command(cmd, cmdsz);
+                        if (ret == 256)
+                                /* someone else picked up this loop device
+                                 * behind our back */
+                                continue;
                         if (ret) {
                                 fprintf(stderr, "%s: error %d on losetup: %s\n",
                                         progname, ret, strerror(ret));