The NODECHK macro should only be enabled as needed for development/debugging. Having it on limits xfsrestore to dumps with 268 million directory entries instead of 4 billion. Signed-off-by: Bill Kendall <wkendall@xxxxxxx> Reviewed-by: Alex Elder <aelder@xxxxxxx> --- restore/Makefile | 2 +- restore/node.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) Index: xfsdump-kernel.org/restore/Makefile =================================================================== --- xfsdump-kernel.org.orig/restore/Makefile +++ xfsdump-kernel.org/restore/Makefile @@ -103,7 +103,7 @@ LLDLIBS = $(LIBUUID) $(LIBHANDLE) $(LIBA LTDEPENDENCIES = $(LIBRMT) LCFLAGS = -DRESTORE -DRMT -DBASED -DDOSOCKS -DINVCONVFIX -DPIPEINVFIX \ - -DEOMFIX -DSESSCPLT -DWHITEPARSE -DNODECHK -DDIRENTHDR_CHECKSUM \ + -DEOMFIX -DSESSCPLT -DWHITEPARSE -DDIRENTHDR_CHECKSUM \ -DF_FSSETDM default: depend $(LTCOMMAND) Index: xfsdump-kernel.org/restore/node.c =================================================================== --- xfsdump-kernel.org.orig/restore/node.c +++ xfsdump-kernel.org/restore/node.c @@ -42,7 +42,9 @@ extern size_t pgmask; /* macros for manipulating node handles when handle consistency * checking is enabled. the upper bits of a handle will be loaded - * with the node gen count, described below. + * with the node gen count, described below. this should not be + * used for production code, it cuts into the number of dirents + * that xfsrestore can handle. */ #define HDLGENCNT 4 #define HDLGENSHIFT ( NBBY * sizeof ( nh_t ) - HDLGENCNT ) _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs