2001-01-14 Theodore Ts'o <tytso@valinux.com>
+ * tune2fs.8.in: Add description of the -j option.
+
* tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush
stdout after printing in-progress message.
(main): Exit with status code 1 if we failed to determine
.I interval-between-checks
]
[
+.B \-j
+.I journal-options
+]
+[
.B \-m
.I reserved-blocks-percentage
]
.B w
in weeks. A value of zero will disable the timedependent checking.
.TP
+.BR \-j " journal_options"
+add a journal inode or device to the filesystem.
+Journal options are comma
+separated, and may take an argument using the equals ('=') sign.
+Currently two options are supported,
+.I size
+and
+.IR device .
+One these two options must be specified when
+building the journal.
+The
+.I size
+option takes a numerical argument which specifies the size of the
+journal in MB (1024*1024 bytes). Any size between 4MB and 100MB may be used.
+Use of this option implies that the journal will be stored in the
+filesystem, so it must be small enough to fit into the filesystem.
+The
+.I device
+option takes a filename which specifies a block device (external
+to the filesystem) which will contain the external journal.
+.TP
.B \-l
list the contents of the filesystem superblock.
.TP
*/
if (!journal_opts)
journal_opts = "size=16";
- sb->s_feature_compat &=~EXT3_FEATURE_COMPAT_HAS_JOURNAL;
+ sb->s_feature_compat &= ~EXT3_FEATURE_COMPAT_HAS_JOURNAL;
journal = old_journal;
}
i_flag = 1;
open_flag = EXT2_FLAG_RW;
break;
- case 'l':
- l_flag = 1;
- break;
case 'j':
journal_opts = optarg;
open_flag = EXT2_FLAG_RW;
break;
+ case 'l':
+ l_flag = 1;
+ break;
case 'L':
new_label = optarg;
L_flag = 1;