diff options
author | Bill Kendall <wkendall@sgi.com> | 2010-11-16 15:05:03 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-11-29 14:55:55 -0600 |
commit | 75693f652d8de09d46f91ccd035bf4d5cf0d7fb0 (patch) | |
tree | 08e941ce55437b237a0ae1170de913263242057f | |
parent | 99a032390b9f9fe2242c421db0ccb554e5058d97 (diff) | |
download | xfsdump-dev-75693f652d8de09d46f91ccd035bf4d5cf0d7fb0.tar.gz |
xfsrestore: turn off NODECHK
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@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
-rw-r--r-- | restore/Makefile | 2 | ||||
-rw-r--r-- | restore/node.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/restore/Makefile b/restore/Makefile index dd7304fe..78ecc2c4 100644 --- a/restore/Makefile +++ b/restore/Makefile @@ -103,7 +103,7 @@ LLDLIBS = $(LIBUUID) $(LIBHANDLE) $(LIBATTR) $(LIBRMT) 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) diff --git a/restore/node.c b/restore/node.c index 20a775a9..499bffd4 100644 --- a/restore/node.c +++ b/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 ) |