diff options
author | imp <imp@FreeBSD.org> | 2005-03-25 07:35:59 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-03-25 07:35:59 +0000 |
commit | 931f79b73836c973aae2133ddf60d6d3ddf034c6 (patch) | |
tree | bd794ca8f11b806d04a312f91f077b870f3b9253 /sbin/restore/restore.h | |
parent | 490dc8aaa3f8ff1dd78d580d1061fc349896e689 (diff) | |
download | FreeBSD-src-931f79b73836c973aae2133ddf60d6d3ddf034c6.zip FreeBSD-src-931f79b73836c973aae2133ddf60d6d3ddf034c6.tar.gz |
Restore the ability to read FreeBSD 1 tapes (and I think any net2
based tapes, but I'm not sure where NFS_MAGIC was introduced after
4.3). When support for the pre-4.4 format was removed (the ability to
read 4.2 and 4.3 BSD tapes), the old format inode conversion was
junked as well. However, FreeBSD 1 dump tapes use the NFS_MAGIC
format, but have this inode format. Before, restore would fail
complaining that '.' wasn't found and the root directory wasn't on
this tape. Since the conversion from the not so old format is
relatively trivial, restore the code to make that conversion.
FreeBSD 1 dumps are once again readable.
MFC After: a few days
Diffstat (limited to 'sbin/restore/restore.h')
-rw-r--r-- | sbin/restore/restore.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/restore/restore.h b/sbin/restore/restore.h index 05ca620..2221b20 100644 --- a/sbin/restore/restore.h +++ b/sbin/restore/restore.h @@ -60,6 +60,7 @@ extern time_t dumpdate; /* time that this dump was made */ extern char command; /* opration being performed */ extern FILE *terminal; /* file descriptor for the terminal input */ extern int Bcvt; /* need byte swapping on inodes and dirs */ +extern int oldinofmt; /* reading tape with FreeBSD 1 format inodes */ /* * Each file in the file system is described by one of these entries @@ -146,3 +147,5 @@ typedef struct rstdirdesc RST_DIR; #define GOOD 1 #define FAIL 0 + +#define NFS_DR_NEWINODEFMT 0x2 /* Tape uses 4.4 BSD inode format */ |