Whamcloud - gitweb
b=16823
authorgreen <green>
Thu, 13 Nov 2008 02:16:08 +0000 (02:16 +0000)
committergreen <green>
Thu, 13 Nov 2008 02:16:08 +0000 (02:16 +0000)
r=adilger,shadow

Remove 4G limit for stripe_size * num_stripes.
4G limit on stripe_size is still in place, though.

lustre/lov/lov_pack.c

index fdbcc94..6dcdd3a 100644 (file)
@@ -500,13 +500,6 @@ int lov_setstripe(struct obd_export *exp, struct lov_stripe_md **lsmp,
 
         }
 
-        if ((__u64)lumv1->lmm_stripe_size * stripe_count > ~0U) {
-                CDEBUG(D_IOCTL, "stripe width %ux%u exceeds %u bytes\n",
-                       lumv1->lmm_stripe_size, (int)lumv1->lmm_stripe_count,
-                       ~0U);
-                RETURN(-EINVAL);
-        }
-
         rc = lov_alloc_memmd(lsmp, stripe_count, lumv1->lmm_pattern, lmm_magic);
 
         if (rc < 0)