From 938625c266817a50768ca365314ac89040b14363 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 24 Jun 2004 12:29:50 +0000 Subject: [PATCH] - additional debug messages for #46 --- lustre/mds/handler.c | 4 +++- lustre/mds/mds_open.c | 3 +++ lustre/mds/mds_reint.c | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 44edcf9..dd203ae 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -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: diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 5b9efb1..c0fe7ef 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -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 */ diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 9a54a4d..5e7886e 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -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 -- 1.8.3.1