#
PKG_MAJOR=1
PKG_MINOR=3
-PKG_REVISION=18
+PKG_REVISION=19
PKG_BUILD=0
+xfsprogs-1.3.19 (15 February 2002)
+ - fix xfs_repair option parsing for external logs
+ - add xfs_repair option parsing for realtime device
+ - fix xfs_repair version (-V) option - should not
+ require an argument
+ - add -V option to usage string
+ - document verbose (-v) and -r options in manpage
+
xfsprogs-1.3.18 (17 January 2002)
- fix mkfs.xfs buglet in overwriting signatures when run
on a regular file
xfs_repair \- repair an XFS filesystem
.SH SYNOPSIS
.nf
-\f3xfs_repair\f1 [ \f3\-nL\f1 ] [ \f3\-o\f1 subopt[=value] ] xfs_special
+\f3xfs_repair\f1 [ \f3\-nLvV\f1 ] [ \f3\-o\f1 subopt[=value] ]
+ [\f3-l\f1 logdev] [\f3-r\f1 rtdev] xfs_special
.sp .8v
-\f3xfs_repair\f1 \f3\-f\f1 [ \f3\-nL\f1 ] [ \f3\-o\f1 subopt[=value] ] ... file
+\f3xfs_repair\f1 \f3\-f\f1 [ \f3\-nLvV\f1 ] [ \f3\-o\f1 subopt[=value] ]
+ [\f3-l\f1 logfile] [\f3-r\f1 rtfile] file
.fi
.SH DESCRIPTION
.I xfs_repair
\f2mkfs.xfs\f1 \f3\-d\f1 \f2file\f1 option).
This might happen if an image copy
of a filesystem has been copied or written into an ordinary file.
+This option implies that any external log or realtime section
+is also in an ordinary file.
.TP
.B \-L
Force Log Zeroing.
and can cause the loss of user files and/or data.
.TP
.B \-l
-Specifies the device special file where the filesystems external
+Specifies the device special file where the filesystem's external
log resides.
Only for those filesystems which use an external log.
See the
.IR xfs (5)
for a detailed description of the XFS log.
.TP
+.B \-r
+Specifies the device special file where the filesystem's realtime
+section resides.
+Only for those filesystems which use a realtime section.
+See the
+\f2mkfs.xfs\f1 \f3\-r\f1 option, and refer to
+.IR xfs (5)
+for a detailed description of the XFS realtime section.
+.TP
.B \-n
No modify mode.
Specifies that
.I xfs_repair
will assume that the filesystem is an XFS filesystem and
will ignore an EFS superblock if one is found.
+.TP
+.B \-v
+Verbose output.
.SS Checks Performed
Inconsistencies corrected include the following:
.TP
EXTERN int force_geo; /* can set geo on low confidence info */
EXTERN int assume_xfs; /* assume we have an xfs fs */
EXTERN int pre_65_beta; /* fs was mkfs'ed by a version earlier * than 6.5-beta */
-EXTERN char *log_name; /* Name of log device */
-EXTERN int log_spec; /* Log dev specified as option */
+EXTERN char *log_name; /* Name of log device */
+EXTERN int log_spec; /* Log dev specified as option */
+EXTERN char *rt_name; /* Name of realtime device */
+EXTERN int rt_spec; /* Realtime dev specified as option */
/* misc status variables */
/* REVISIT: Need to do fs sanity / log validity checking */
}
+ if (rt_spec) { /* RT device specified */
+ args->rtname = rt_name;
+ args->risfile = (isa_file?1:0);
+ /* XXX assume data file also means rt file */
+ }
+
args->notvolmsg = "you should never get this message - %s";
args->notvolok = 1;
args->setblksize = 1;
static void
usage(void)
{
- do_warn("Usage: %s [-nV] [-o subopt[=value]] [-l logdevice] devname\n",
+ do_warn("Usage: %s [-nLvV] [-o subopt[=value]] [-l logdev] [-r rtdev] devname\n",
progname);
exit(1);
}
* XXX have to add suboption processing here
* attributes, quotas, nlinks, aligned_inos, sb_fbits
*/
- while ((c = getopt(argc, argv, "o:flLnDvV:")) != EOF) {
+ while ((c = getopt(argc, argv, "o:fl:r:LnDvV")) != EOF) {
switch (c) {
case 'D':
dumpcore = 1;
log_name = optarg;
log_spec = 1;
break;
+ case 'r':
+ rt_name = optarg;
+ rt_spec = 1;
+ break;
case 'f':
isa_file = 1;
break;