Whamcloud - gitweb
Branch HEAD
authorbwzhou <bwzhou>
Sun, 15 Jun 2008 16:48:51 +0000 (16:48 +0000)
committerbwzhou <bwzhou>
Sun, 15 Jun 2008 16:48:51 +0000 (16:48 +0000)
b=13285
r=adilger, deen

not to fail the import when -EFBIG is returned

lustre/osc/osc_create.c

index ab1052b..99dd705 100644 (file)
@@ -87,7 +87,8 @@ static int osc_interpret_create(struct ptlrpc_request *req, void *data, int rc)
                 DEBUG_REQ(D_INODE, req, "Got EGAIN - resend \n");
                 break;
         case -ENOSPC:
                 DEBUG_REQ(D_INODE, req, "Got EGAIN - resend \n");
                 break;
         case -ENOSPC:
-        case -EROFS: {
+        case -EROFS: 
+        case -EFBIG: {
                 oscc->oscc_flags |= OSCC_FLAG_NOSPC;
                 if (body && rc == -ENOSPC) {
                         oscc->oscc_grow_count = OST_MIN_PRECREATE;
                 oscc->oscc_flags |= OSCC_FLAG_NOSPC;
                 if (body && rc == -ENOSPC) {
                         oscc->oscc_grow_count = OST_MIN_PRECREATE;