Whamcloud - gitweb
- additional debug messages for #46
authoralex <alex>
Thu, 24 Jun 2004 12:29:50 +0000 (12:29 +0000)
committeralex <alex>
Thu, 24 Jun 2004 12:29:50 +0000 (12:29 +0000)
lustre/mds/handler.c
lustre/mds/mds_open.c
lustre/mds/mds_reint.c

index 44edcf9..dd203ae 100644 (file)
@@ -1451,7 +1451,9 @@ repeat:
                 up(&new->d_inode->i_sem);
                 OBD_FREE(mea, mealen);
         } else if (rc == 0 && body->oa.o_easize) {
-                mds_try_to_split_dir(obd, new, NULL, body->oa.o_easize);
+                flags = mds_try_to_split_dir(obd, new, NULL, body->oa.o_easize);
+                CERROR("%s: splitted %lu/%u - %d\n", obd->obd_name,
+                       new->d_inode->i_ino, new->d_inode->i_generation, flags);
         }
 
 cleanup:
index 5b9efb1..c0fe7ef 100644 (file)
@@ -974,6 +974,9 @@ got_child:
                 if ((rc = mds_try_to_split_dir(obd, dparent, &mea, 0))) {
                         if (rc > 0) {
                                 /* dir got splitted */
+                                CERROR("%s: splitted %lu/%u - %d\n", obd->obd_name,
+                                        dparent->d_inode->i_ino,
+                                        dparent->d_inode->i_generation, rc);
                                 GOTO(cleanup, rc = -ERESTART);
                         } else {
                                 /* error happened during spitting */
index 9a54a4d..5e7886e 100644 (file)
@@ -625,6 +625,9 @@ static int mds_reint_create(struct mds_update_record *rec, int offset,
                 if ((rc = mds_try_to_split_dir(obd, dparent, &mea, 0))) {
                         if (rc > 0) {
                                 /* dir got splitted */
+                                CERROR("%s: splitted %lu/%u - %d\n",
+                                       obd->obd_name, dparent->d_inode->i_ino,
+                                       dparent->d_inode->i_generation, rc);
                                 GOTO(cleanup, rc = -ERESTART);
                         } else {
                                 /* error happened during spitting. */
@@ -677,6 +680,10 @@ static int mds_reint_create(struct mds_update_record *rec, int offset,
                                                                NULL, nstripes))) {
                                         if (rc > 0) {
                                                 /* dir got splitted */
+                                        CERROR("%s: splitted %lu/%u - %d\n",
+                                               obd->obd_name,
+                                               dchild->d_inode->i_ino,
+                                               dchild->d_inode->i_generation, rc);
                                                 rc = 0;
                                         } else {
                                                 /* an error occured during