reiserfstune is used for tuning the ReiserFS. It can
change two journal parameters (the journal size and the
maximum transaction size), and it can move the journal's
location to a new specified block device. (The old
ReiserFS's journal may be kept unused, or discarded at the
user's option.) Besides that reiserfstune can store
the bad block list to the ReiserFS and set UUID and LABEL.
Note: At the time of writing the relocated journal was
implemented for a special release of ReiserFS, and was not
expected to be put into the mainstream kernel until
approximately Linux 2.5. This means that if you have the
stock kernel you must apply a special patch. Without this
patch the kernel will refuse to mount the newly modified
file system. We will charge $25 to explain this to you if
you ask us why it doesn't work.
Perhaps the most interesting application of this code is to
put the journal on a solid state disk.
device
is the special file corresponding to the newly specified
block device (e.g /dev/hdXX for IDE disk partition or
/dev/sdXX for the SCSI disk partition).
OPTIONS
-j | --journal-deviceFILE
FILE is the file name of the block device the file
system has the current journal (the one prior to running
reiserfstune) on. This option is required when the journal
is already on a separate device from the main data device
(although it can be avoided with
--no-journal-available). If you don't specify journal
device by this option, reiserfstune suppose that journal is
on main device.
--no-journal-available
allows reiserfstune to continue when the current
journal's block device is no longer available. This might
happen if a disk goes bad and you remove it (and run
fsck).
--journal-new-deviceFILE
FILE is the file name of the block device which will
contain the new journal for the file system. If you don't
specify this, reiserfstune supposes that journal device
remains the same.
-s | --journal-new-sizeN
N is the size parameter for the new journal. When
journal is to be on a separate device - its size defaults to
number of blocks that device has. When journal is to be on
the same device as the filesytem - its size defaults to
amount of blocks allocated for journal by mkreiserfs
when it created the filesystem. Minimum is 513 for both
cases.
-o | --journal-new-offsetN
N is an offset in blocks where journal will starts
from when journal is to be on a separate device. Default is
0. Has no effect when journal is to be on the same device as
the filesystem. Most users have no need to use this feature.
It can be used when you want the journals from multiple
filesystems to reside on the same device, and you don't want
to or cannot partition that device.
-t | --trans-max-sizeN
N is the maximum transaction size parameter for the
new journal. The default, and max possible, value is 1024
blocks. It should be less than half the size of the journal.
If specifed incorrectly, it will be adjusted.
-b | --add-badblocksfile
File is the file name of the file that contains the
list of blocks to be marked as bad on the fs. The list is
added to the fs list of bad blocks.
-B | --badblocksfile
File is the file name of the file that contains the
list of blocks to be marked as bad on the fs. The bad block
list on the fs is cleared before the list specified in the
File is added to the fs.
-f | --force
Normally reiserfstune will refuse to change a journal
of a file system that was created before this journal
relocation code. This is because if you change the journal,
you cannot go back (without special option
--make-journal-standard) to an old kernel that lacks
this feature and be able to use your filesytem. This option
forces it to do that. Specified more than once it allows to
avoid asking for confirmation.
--make-journal-standard
As it was mentioned above, if your file system has
non-standard journal, it can not be mounted on the kernel
without journal relocation code. The thing can be changed,
the only condition is that there is reserved area on main
device of the standard journal size 8193 blocks (it will be
so for instance if you convert standard journal to
non-standard). Just specify this option when you relocate
journal back, or without relocation if you already have it
on main device.
-u | --uuidUUID
Set the universally unique identifier ( UUID ) of the
filesystem to UUID (see also uuidgen(8)). The
format of the UUID is a series of hex digits separated by
hypthens, like this:
"c1b9d5a2-f162-11cf-9ece-0020afc76f16".
-l | --labelLABEL
Set the volume label of the filesystem. LABEL can be
at most 16 characters long; if it is longer than 16
characters, reiserfstune will truncate it.
POSSIBLE SCENARIOS OF USING REISERFSTUNE:
1. You have ReiserFS on /dev/hda1, and you wish to have it
working with its journal on the device
/dev/journal
boot kernel patched with special "relocatable journal support" patch
reiserfstune /dev/hda1 --journal-new-device /dev/journal -f
mount /dev/hda1 and use.
You would like to change max transaction size to 512 blocks
reiserfstune -t 512 /dev/hda1
You would like to use your file system on another kernel that doesn't
contain relocatable journal support.
umount /dev/hda1
reiserfstune /dev/hda1 -j /dev/journal --journal-new-device /dev/hda1 --make-journal-standard
mount /dev/hda1 and use.
2. You would like to have ReiserFS on /dev/hda1 and to be able to
switch between different journals including journal located on the
device containing the filesystem.
boot kernel patched with special "relocatable journal support" patch
mkreiserfs /dev/hda1
you got solid state disk (perhaps /dev/sda, they typically look like scsi disks)
reiserfstune --journal-new-device /dev/sda1 -f /dev/hda1
Your scsi device dies, it is three in the morning, you have an extra IDE device
lying around
reiserfsck --no-journal-available /dev/hda1
or
reiserfsck --rebuild-tree --no-journal-available /dev/hda1
reiserfstune --no-journal-available --journal-new-device /dev/hda1 /dev/hda1
using /dev/hda1 under patched kernel
AUTHOR
This version of reiserfstune has been written by
Vladimir Demidov <vova@namesys.com> and Edward
Shishkin <edward@namesys.com>.
BUGS
Please report bugs to the ReiserFS developers
<reiserfs-dev@namesys.com>, providing as much
information as possible--your hardware, kernel, patches,
settings, all printed messages; check the syslog file for
any related information.
mkreiserfs creates a Linux ReiserFS filesystem on a
device (usually a disk partition).
device
is the special file corresponding to a device or to a
partition (e.g /dev/hdXX for an IDE disk partition or
/dev/sdXX for a SCSI disk partition).
filesystem-size
is the size in blocks of the filesystem. If omitted,
mkreiserfs will automatically set it.
OPTIONS
-b | --block-sizeN
N is block size in bytes. It may only be set to a
power of 2 within the 512-8192 interval.
-h | --hashHASH
HASH specifies which hash function will sort the
names in the directories. Choose from r5, rupasov, or tea.
r5 is the default one.
--formatFORMAT
FORMAT specifies the format for the new filsystem.
Choose format 3.5 or 3.6. If none is specified
mkreiserfs will create format 3.6 if running kernel
is 2.4 or higher, and format 3.5 if kernel 2.2 is running,
and will refuse creation under all other
kernels.
-u | --uuidUUID
Sets the Universally Unique IDentifier of the filesystem to
UUID (see also uuidgen(8)). The format of the
UUID is a series of hex digits separated by hypthens,
e.g.: "c1b9d5a2-f162-11cf-9ece-0020afc76f16". If
the option is skipped, mkreiserfs will by default
generate a new UUID.
-l | --labelLABEL
Sets the volume label of the filesystem. LABEL can at
most be 16 characters long; if it is longer than 16
characters, mkreiserfs will truncate it.
-q | --quiet
Sets mkreiserfs to work quietly without producing
messages, progress or questions. It is useful, but only for
use by end users, if you run mkreiserfs in a
script.
-j | --journal-deviceFILE
FILE is the name of the block device on which is to
be places the filesystem journal.
-o | --journal-offsetN
N is the offset where the journal starts when it is
to be on a separate device. Default is 0. N has no
effect when the journal is to be on the host
device.
-s | --journal-sizeN
N is the size of the journal in blocks. When the
journal is to be on a separate device, its size defaults to
the number of blocks that the device has. When journal is to
be on the host device, its size defaults to 8193 and the
maximal possible size is 32749 (for blocksize 4k). The
minimum size is 513 blocks (whether the journal is on the
host or on a separate device).
-t | --transaction-max-sizeN
N is the maximum transaction size parameter for the
journal. The default, and max possible, value is 1024
blocks. It should be less than half the size of the journal.
If specified incorrectly, it will automatically be
adjusted.
-B | --badblocksfile
File is the file name of the file that contains the
list of blocks to be marked as bad on the filesystem. This
list can be created by /sbin/badblocks -b block-size
device.
-f
Forces mkreiserfs to continue even when the device is
the whole disk, looks mounted, or is not a block device. If
-f is specified more than once, it allows the user to
avoid asking for confirmation.
-d
Sets mkreiserfs to print debugging information during
mkreiserfs.
-V
Prints the version and then exits.
AUTHOR
This version of mkreiserfs has been written by Edward
Shishkin <edward@namesys.com>.
BUGS
Please report bugs to the ReiserFS developers
<reiserfs-dev@namesys.com>, providing as much
information as possible--your hardware, kernel, patches,
settings, all printed messages; check the syslog file for
any related information.
Reiserfsck searches for a Reiserfs filesystem on a
device, replays any necessary transactions, and either
checks or repairs the file system.
device
is the special file corresponding to a device or to a
partition (e.g /dev/hdXX for an IDE disk partition or
/dev/sdXX for a SCSI disk partition).
OPTIONS
--rebuild-sb
This option recovers the superblock on a Reiserfs partition.
Normally you only need this option if mount reports
"read_super_block: can't find a reiserfs file
system" and you are sure that a Reiserfs file system is
there. But remember that if you have used some partition
editor program and now you cannot find a filesystem,
probably something has gone wrong while repartitioning and
the start of the partition has been changed. If so, instead
of rebuilding the super block on a wrong place you should
find the correct start of the partition first.
--check
This default action checks filesystem consistency and
reports, but does not repair any corruption that it finds.
This option may be used on a read-only file system
mount.
--fix-fixable
This option recovers certain kinds of corruption that do not
require rebuilding the entire file system tree
(--rebuild-tree). Normally you only need this option
if the --check option reports "corruption that
can be fixed with --fix-fixable". This includes:
zeroing invalid data-block pointers, correcting st_size and
st_blocks for directories, and deleting invalid directory
entries.
--rebuild-tree
This option rebuilds the entire filesystem tree using leaf
nodes found on the device. Normally you only need this
option if the reiserfsck --check reports
"Running with --rebuild-tree is required".
You are strongly encouraged to make a backup copy of the
whole partition before attempting the --rebuild-tree
option. Once reiserfsck --rebuild-tree is started it
must finish its work (and you should not interrupt it),
otherwise the filesystem will be left in the unmountable
state to avoid subsequent data corruptions.
--clean-attributes
This option cleans reserved fields of Stat-Data items. There
were days when there were no extended attributes in
reiserfs. When they were implemented old partitions needed
to be cleaned first -- reiserfs code in the kernel did not
care about not used fields in its strutures. Thus if you
have used one of the old (pre-attrbutes) kernels with a
ReiserFS filesystem and you want to use extented attribues
there, you should clean the filesystem first.
--journaldevice , -jdevice
This option supplies the device name of the current file
system journal. This option is required when the journal
resides on a separate device from the main data device
(although it can be avoided with the expert option
--no-journal-available).
--adjust-size, -z
This option causes reiserfsck to correct file sizes
that are larger than the offset of the last discovered byte.
This implies that holes at the end of a file will be
removed. File sizes that are smaller than the offset of the
last discovered byte are corrected by
--fix-fixable.
--badblocksfile, -Bfile
This option sets the badblock list to be the list of blocks
specified in the given `file`. The filesystem badblock list
is cleared before the new list is added. It can be used with
--fix-fixable to fix the list of badblocks (see
debugreiserfs -B). If the device has bad blocks,
every time it must be given with the --rebuild-tree
option.
--logfilefile, -lfile
This option causes reiserfsck to report any
corruption it finds to the specified log file rather than to
stderr.
--nolog, -n
This option prevents reiserfsck from reporting any
kinds of corruption.
--quiet, -q
This option prevents reiserfsck from reporting its
rate of progress.
--yes, -y
This option inhibits reiserfsck from asking you for
confirmation after telling you what it is going to do. It
will assuem you confirm. For safety, it does not work with
the --rebuild-tree option.
-a, -p
These options are usually passed by fsck -A during the
automatic checking of those partitions listed in /etc/fstab.
These options cause reiserfsck to print some
information about the specified filesystem, to check if
error flags in the superblock are set and to do some
light-weight checks. If these checks reveal a corruption or
the flag indicating a (possibly fixable) corruption is found
set in the superblock, then reiserfsck switches to
the fix-fixable mode. If the flag indicating a fatal
corruption is found set in the superblock, then
reiserfsck finishes with an error.
-V
This option prints the reiserfsprogs version and then
exit.
-r, -f
These options are not yet operational and therefore are
ignored.
EXPERT OPTIONS
DO NOT USE THESE OPTIONS UNLESS YOU KNOW WHAT YOU ARE DOING.
WE ARE NOT RESPONSIBLE IF YOU LOSE DATA AS A RESULT OF THESE
OPTIONS.
--no-journal-available
This option allows reiserfsck to proceed when the
journal device is not available. This option has no effect
when the journal is located on the main data device. NOTE:
after this operation you must use reiserfstune to
specify a new journal device.
--scan-whole-partition, -S
This option causes --rebuild-tree to scan the whole
partition but not only the used space on the
partition.
AN EXAMPLE OF USING reiserfsck
1. You think something may be wrong with a reiserfs
partition on /dev/hda1 or you would just like to perform a
periodic disk check.
2. Run reiserfsck --check --logfile check.log
/dev/hda1. If reiserfsck --check exits with
status 0 it means no errors were discovered.
3. If reiserfsck --check exits with status 1 (and
reports about fixable corruptions) it means that you should
run reiserfsck --fix-fixable --logfile fixable.log
/dev/hda1.
4. If reiserfsck --check exits with status 2 (and
reports about fatal corruptions) it means that you need to
run reiserfsck --rebuild-tree. If reiserfsck
--check fails in some way you should also run
reiserfsck --rebuild-tree, but we also encourage you
to submit this as a bug report.
5. Before running reiserfsck --rebuild-tree, please
make a backup of the whole partition before proceeding. Then
run reiserfsck --rebuild-tree --logfile rebuild.log
/dev/hda1.
6. If the reiserfsck --rebuild-tree step fails or
does not recover what you expected, please submit this as a
bug report. Try to provide as much information as possible
including your platform and Linux kernel version. We will
try to help solve the problem.
EXIT CODES
reiserfsck uses the following exit codes:
0 - No errors.
1 - File system errors corrected.
2 - Reboot is needed.
4 - File system fatal errors left uncorrected,
reiserfsck --rebuild-tree needs to be launched.
6 - File system fixable errors left uncorrected,
reiserfsck --fix-fixable needs to be launched.
8 - Operational error.
16 - Usage or syntax error.
AUTHOR
This version of reiserfsck has been written by Vitaly
Fertman <vitaly@namesys.com>.
BUGS
Please report bugs to the ReiserFS developers
<reiserfs-dev@namesys.com>, providing as much
information as possible--your hardware, kernel, patches,
settings, all printed messages, the logfile; check the
syslog file for any related information.
The resize_reiserfs tool resizes an unmounted
reiserfs file system. It enlarges or shrinks a reiserfs
file system located on a device so that it will have
size bytes or size=old_size +(-) size bytes if
the + or - prefix is used. If the -s option is not
specified, the filesystem will be resized to fill the given
device. The size parameter may have one of the
optional modifiers K, M, G, which means
the size parameter is given in kilo-, mega-,
gigabytes respectively.
The resize_reiserfs program does not manipulate the
size of the device. If you wish to enlarge a filesystem, you
must make sure you expand the underlying device first. This
can be done using cfdisk(8) for partitions, by
deleting the partition and recreating it with a larger size
(assuming there is free space after the partition in
question). Make sure you re-create it with the same starting
disk cylinder as before! Otherwise, the resize operation
will certainly not work, and you may lose your entire
filesystem.
The resize_reiserfs program allows to grow a reiserfs
on-line if there is a free space on block
device.
If you wish to shrink a reiserfs partition, first use
resize_reiserfs to shrink the file system. You may
then use cfdisk(8) to shrink the device. When
shrinking the size of the device, make sure you do not make
it smaller than the reduced size of the reiserfs
filesystem.
OPTIONS
-s [+|-]size
Set the new size in bytes.
-jdev
Set the journal device name.
-f
Force, do not perform checks.
-q
Do not print anything but error messages.
-v
Turn on extra progress status messages
(default).
RETURN VALUES
0 Resizing successful.
-1 Resizing not successful.
EXAMPLES
The following example shows how to test
resize_reiserfs. Suppose 2Gb reiserfs filesystem is
created on the device /dev/hda8 and is mounted on /mnt. For
shrinking the device we need to unmount it first, then run
resize_reiserfs with a size parameter (in this
case -1Gb):
This version of resize_reiserfs has been written by
Alexander Zarochentcev <zam@namesys.com>.
BUGS
Please report bugs to the ReiserFS developers
<reiserfs-dev@namesys.com>, providing as much
information as possible--your hardware, kernel, patches,
settings, all printed messages; check the syslog file for
any related information.
debugreiserfs sometimes helps to solve problems with
reiserfs filesystems. When run without options it prints the
super block of the ReiserFS filesystem found on the
device.
device
is the special file corresponding to the device (e.g
/dev/hdXX for an IDE disk partition or /dev/sdXX for a SCSI
disk partition).
OPTIONS
-jdevice
prints the contents of the journal. The option -p allows it
to pack the journal with other metadata into the
archive.
-J
prints the journal header.
-d
prints the formatted nodes of the internal tree of the
filesystem.
-D
prints the formatted nodes of all used blocks of the
filesystem.
-m
prints the contents of the bitmap (slightly
useful).
-o
prints the objectid map (slightly useful).
-Bfile
takes the list of bad blocks stored in the internal ReiserFS
tree and translates it into an ascii list written to the
specified file.
-1blocknumber
prints the specified block of the filesystem.
-p
extracts the filesystem's metadata with debugreiserfs
-p /dev/xxx | gzip -c > xxx.gz. None of your data are
packed unless a filesystem corruption presents when the
whole block having this corruption is packed. You send us
the output, and we use it to create a filesystem with the
same strucure as yours using debugreiserfs -u. When
the data file is not too large, this usually allows us to
quickly reproduce and debug the problem.
-u
builds the ReiserFS filesystem image with gunzip -c xxx.gz |
debugreiserfs -u /dev/image of the previously packed
metadata with debugreiserfs -p. The result image is
not the same as the original filesystem, because mostly only
metadata were packed with debugreiserfs -p, but the
filesystem structure is completely recreated.
-S
When -S is not specified -p deals with blocks marked used in
the filesystem bitmap only. With this option set
debugreiserfs will work with the entire
device.
-q
When -p is in use, suppress showing the speed of
progress.
AUTHOR
This version of debugreiserfs has been written by
Vitaly Fertman <vitaly@namesys.com>.
BUGS
Please report bugs to the ReiserFS developers
<reiserfs-dev@namesys.com>, providing as much
information as possible--your hardware, kernel, patches,
settings, all printed messages; check the syslog file for
any related information.
Instructs 3.6 ReiserFS code to mount
3.5 filesystem, using
3.6 format for newly created objects.
After this you cannot use it through 3.5
ReiserFS tools anymore. This option causes conversion of old
format super block to the new format. If not specified - old
partition will be dealt with in a manner of 3.5.
Example:
mount -t reiserfs -o conv /dev/sdb1 /mnt/scsi-disk-b
nolog
Disable journalling. This will get you slight performance improvement in
some situations at the cost of losing fast recovery from crashes.
Actually even with this option turned on, ReiserFS still performs all
journalling paraphernalia, save for actual writes into journalling area.
Implementation of real nolog is work in progress.
Example:
mount -t reiserfs -o nolog /dev/sdb1 /mnt/scsi-disk-b
notail
By default, ReiserFS stores small files and `file tails' directly
into the tree. This confuses some utilities like
LILO. This option is used to disable
packing of files into the tree.
Example:
mount -t reiserfs -o notail /dev/sdb1 /mnt/scsi-disk-b
replayonly
Replay transactions in journal, but don't actually mount filesystem.
Used by fsck, mostly.
Example:
mount -t reiserfs -o replayonly /dev/sdb1 /mnt/scsi-disk-b
jdev=journal_device
Example:
mount -t reiserfs -o jdev=/dev/sdb2 /dev/sdb1 /mnt/scsi-disk-b
attrs
Example:
mount -t reiserfs -o attrs /dev/sdb1 /mnt/scsi-disk-b
noattrs
Example:
mount -t reiserfs -o noattrs /dev/sdb1 /mnt/scsi-disk-b
resize=NUMBER
Remount option allowing to expand ReiserFS partition on-line.
Make ReiserFS think that device has NUMBER blocks.
Useful with LVM devices.
There is a special resizer utility
which can be obtained from
ftp://ftp.namesys.com/pub/reiserfsprogs
Example:
mount -t reiserfs -o resize=680000 /dev/sdb1 /mnt/scsi-disk-b
hash=rupasov / tea / r5 / detect
Choose hash function ReiserFS will use to find files within
directories.
Long time ago ReiserFS had only one hash,
so hash code was not marked in filesystem superblock. Then additional hashes
became available so we had to put hash code into super block. Also, old hash was
made notdefault. At that time there were already a number of filesystems with not
set hash code in super block. So, mount option was created to make it possible to
write proper hash value into super block.
Relative merits of hash functions were subjected to discussions of great
length on the
ReiserFS mailing list.
(Try this query.)
Roughly speaking: 99% of the time, this option
is not required. If the normal autodection code can't determine which
hash to use (because both hases had the same value for a file)
use this option to force a specific hash. It won't allow you to override
the existing hash on the FS, so if you have a tea hash disk, and mount
with -o hash=rupasov, the mount will fail.
rupasov
This hash is invented by
Yury Yu. Rupasov <yura@yura.polnet.botik.ru>. It is fast and preserves locality, mapping lexicographically
close file names to the close hash values. Never use it, as it has high probability of hash collisions.
tea
This hash is a Davis-Meyer function
implemented by Jeremy Fitzhardinge <jeremy@zip.com.au>.
It is hash permuting bits in the name thoroughly. It gets high randomness
and, therefore, low probability of hash collision, but this costs
performance. Use this if you got EHASHCOLLISION with
r5 hash.
r5
This hash is a modified version of
rupasov hash. It is used by default and it is
better to stick here until you have to support huge directories and unusual
file-name patterns.
detect
This is the instructs mount to detect hash function
in use by instance of filesystem being mounted and write this information
into superblock. This is only useful on the first mount of old filesystem.
Example:
mount -t reiserfs -o hash=r5 /dev/sdb1 /mnt/scsi-disk-b
Tunes block allocator.
This option is used for testing experimental features, makes benchmarking new
features with and without more convenient, should never be used by
users in any code shipped to users (ideally).
hashed_relocation
Tunes block allocator.
This may give you performance improvements in some situations.
no_unhashed_relocation
Tunes block allocator.
This may give you performance improvements in some situations.
mount -t reiserfs -o block-allocator=border /dev/sdb1 /mnt/scsi-disk-b
linux kernels 2.6.x
conv
Instructs 3.6 ReiserFS code to mount
3.5 filesystem, using
3.6 format for newly created objects.
After this you cannot use it through 3.5
ReiserFS tools anymore. This option causes conversion of old
format super block to the new format. If not specified - old
partition will be dealt with in a manner of 3.5.
Example:
mount -t reiserfs -o conv /dev/sdb1 /mnt/scsi-disk-b
nolog
Disable journalling. This will get you slight performance improvement in
some situations at the cost of losing fast recovery from crashes.
Actually even with this option turned on, ReiserFS still performs all
journalling paraphernalia, save for actual writes into journalling area.
Implementation of real nolog is work in progress.
Example:
mount -t reiserfs -o nolog /dev/sdb1 /mnt/scsi-disk-b
notail
By default, ReiserFS stores small files and `file tails' directly
into the tree. This confuses some utilities like
LILO. This option is used to disable
packing of files into the tree.
Example:
mount -t reiserfs -o notail /dev/sdb1 /mnt/scsi-disk-b
replayonly
Replay transactions in journal, but don't actually mount filesystem.
Used by fsck, mostly.
Example:
mount -t reiserfs -o replayonly /dev/sdb1 /mnt/scsi-disk-b
jdev=journal_device
Example:
mount -t reiserfs -o jdev=/dev/sdb2 /dev/sdb1 /mnt/scsi-disk-b
attrs
Example:
mount -t reiserfs -o attrs /dev/sdb1 /mnt/scsi-disk-b
noattrs
Example:
mount -t reiserfs -o noattrs /dev/sdb1 /mnt/scsi-disk-b
resize=NUMBER
Remount option allowing to expand ReiserFS partition on-line.
Make ReiserFS think that device has NUMBER blocks.
Useful with LVM devices.
There is a special resizer utility
which can be obtained from
ftp://ftp.namesys.com/pub/reiserfsprogs
Example:
mount -t reiserfs -o resize=680000 /dev/sdb1 /mnt/scsi-disk-b
data=ordered / journal / writeback
Specifies the journalling mode for file data. Metadata is always journaled.
journal
All data is committed into the journal prior to being written into the main
file system.
ordered
This is the default mode. All data is forced directly out to the main
file system prior to its metadata being committed to the journal.
writeback
Data ordering is not preserved - data may be written into the main
file system after its metadata has been committed to the journal.
This is rumoured to be the highest-throughput option. It guarantees
internal file system integrity, however it can allow old data to appear in
files after a crash and journal recovery.
Example:
mount -t reiserfs -o data=writeback /dev/sdb1 /mnt/scsi-disk-b
Tunes block allocator.
This option is used for testing experimental features, makes benchmarking new
features with and without more convenient, should never be used by
users in any code shipped to users (ideally).
hashed_relocation
Tunes block allocator.
This may give you performance improvements in some situations.
no_unhashed_relocation
Tunes block allocator.
This may give you performance improvements in some situations.
turns off journalling feature of ReiserFS. This gives performance gain for
some applications, but you lose fault tolerance. That is, you must properly
umount your disk, or else you will have to repair the filesystem using reiserfsck(8) on the subsequent boot.
used internally by reiserfsck(8) to replay the journal before doing filesystem check. (No actual mount
happens if you try to mount ReiserFS with this option, only the log
replay.)
See http://www.namesys.com
for a current list, there are many, Vladimir Saveljev, Igor, and Hans
Reiser are among them. Ecila.org contributed the funding that started this
going.
mkreiserfs(8), reiserfsck(8)
debian/fsck.reiserfs 0000644 0000000 0000000 00000000432 11232262654 011662 0 ustar #! /bin/sh
# Treat the -y flag the same way other fsck.* instances do
ADD_OPTS=""
for opt
do
case "$opt" in
--)
break
;;
-y)
ADD_OPTS="-a"
;;
esac
done
# Be sure to invoke reiserfsck quitely for booting over slow consoles
exec /sbin/reiserfsck -q $ADD_OPTS "$@"
debian/compat 0000644 0000000 0000000 00000000002 12257556575 010407 0 ustar 9
debian/reiserfsprogs.dirs 0000644 0000000 0000000 00000000005 11232262654 012744 0 ustar sbin
debian/journal_params_autofix.patch.nolongerapplied 0000644 0000000 0000000 00000003474 11232262654 020157 0 ustar ===== reiserfscore/journal.c 1.19 vs edited =====
--- 1.19/reiserfsprogs/reiserfscore/journal.c Thu Apr 24 17:25:56 2003
+++ edited/reiserfscore/journal.c Tue Apr 29 19:58:48 2003
@@ -481,21 +481,6 @@
}
if (check) {
-
- j_head = (struct reiserfs_journal_header *)(bh->b_data);
-
- if (get_jp_journal_1st_block (&j_head->jh_journal) != get_jp_journal_1st_block (sb_jp (sb)) ||
- get_jp_journal_dev (&j_head->jh_journal) != get_jp_journal_dev (sb_jp (sb)) ||
- get_jp_journal_size (&j_head->jh_journal) != get_jp_journal_size (sb_jp (sb)))
- {
- reiserfs_warning (stderr,
- "\nreiserfs_open_journal: journal parameters from the super block does not match \n"
- "to journal parameters from the journal. It is expected if you created your fs \n"
- "with old reiserfsprogs. In this case rebuild-sb will fix it all for you.\n", j_filename);
- brelse (bh);
- return 0;
- }
-
/* Check the superblock's journal parameters. */
if (!is_reiserfs_jr_magic_string (sb)) {
if (get_jp_journal_dev (sb_jp(sb)) != 0 ||
@@ -506,6 +491,20 @@
brelse (bh);
return 0;
}
+ } else {
+ j_head = (struct reiserfs_journal_header *)(bh->b_data);
+
+ if (get_jp_journal_1st_block (&j_head->jh_journal) != get_jp_journal_1st_block (sb_jp (sb)) ||
+ get_jp_journal_dev (&j_head->jh_journal) != get_jp_journal_dev (sb_jp (sb)) ||
+ get_jp_journal_size (&j_head->jh_journal) != get_jp_journal_size (sb_jp (sb)))
+ {
+ reiserfs_warning (stderr,
+ "\nreiserfs_open_journal: journal parameters from the super block does not match \n"
+ "to journal parameters from the journal. It is expected if you created your fs \n"
+ "with old reiserfsprogs. In this case rebuild-sb will fix it all for you.\n", j_filename);
+ brelse (bh);
+ return 0;
+ }
}
}
debian/reiserfsprogs.manpages 0000644 0000000 0000000 00000000176 11232262654 013607 0 ustar mkreiserfs/mkreiserfs.8
fsck/reiserfsck.8
resize_reiserfs/resize_reiserfs.8
tune/reiserfstune.8
debugreiserfs/debugreiserfs.8
debian/reiserfsprogs-udeb.dirs 0000644 0000000 0000000 00000000005 11232262654 013661 0 ustar sbin
debian/reiserfsprogs-udeb.install 0000644 0000000 0000000 00000000160 12257566511 014377 0 ustar sbin/fsck.reiserfs sbin/
sbin/reiserfsck sbin/
sbin/resize_reiserfs sbin/
sbin/debugreiserfs sbin/
debian/mkreiserfs-udeb.install 0000644 0000000 0000000 00000000055 12257566241 013657 0 ustar sbin/mkreiserfs sbin
sbin/mkfs.reiserfs debian/yesopt.diff.nolongerapplied 0000644 0000000 0000000 00000006777 11232262654 014550 0 ustar diff -ru reiserfsprogs-3.6.4/fsck/fsck.h new_reiserfsprogs-3.6.4/fsck/fsck.h
--- reiserfsprogs-3.6.4/fsck/fsck.h Mon Sep 23 18:03:51 2002
+++ new_reiserfsprogs-3.6.4/fsck/fsck.h Sat Mar 15 02:59:59 2003
@@ -57,6 +57,7 @@
#define OPT_SAVE_PASSES_DUMP 0x200
#define BADBLOCKS_FILE 0x400
#define OPT_SAVE_ROLLBACK 0x800
+#define OPT_YES 0x1000
/* pass0.c */
@@ -455,6 +456,7 @@
#define fsck_deallocate_bitmap(fs) fsck_data(fs)->check.deallocate_bitmap
+#define fsck_yes(fs) (fsck_data(fs)->options & OPT_YES)
#define fsck_interactive(fs) (fsck_data(fs)->options & OPT_INTERACTIVE)
//#define fsck_fix_fixable(fs) (fsck_data(fs)->options & OPT_FIX_FIXABLE)
diff -ru reiserfsprogs-3.6.4/fsck/main.c new_reiserfsprogs-3.6.4/fsck/main.c
--- reiserfsprogs-3.6.4/fsck/main.c Sat Mar 15 02:55:11 2003
+++ new_reiserfsprogs-3.6.4/fsck/main.c Sat Mar 15 02:50:41 2003
@@ -37,9 +37,10 @@
" \t\t\tfix file sizes to real size\n"\
" \t\t\tlist of all bad blocks on the fs\n"\
" -q | --quiet\t\tno speed info\n"\
+" -y | --yes\t\trun without confirmation\n"\
" -V\t\t\tprints version and exits\n"\
" -a and -p\t\tprint fs info and exits\n"\
-" -f, -r and -y\t\tignored\n"\
+" -f and -r\t\tignored\n"\
"Expert options:\n"\
" --no-journal-available\n"\
" \t\t\tdo not open nor replay journal\n"\
@@ -103,6 +104,7 @@
{"interactive", no_argument, 0, 'i'},
{"adjust-file-size", no_argument, 0, 'z'},
{"quiet", no_argument, 0, 'q'},
+ {"yes", no_argument, 0, 'y'},
{"nolog", no_argument, 0, 'n'},
/* if file exists ad reiserfs can be load of it - only
@@ -154,6 +156,10 @@
data->options |= OPT_QUIET;
break;
+ case 'y': /* --yes */
+ data->options |= OPT_YES;
+ break;
+
case 'l': /* --logfile */
data->log_file_name = optarg;
/*asprintf (&data->log_file_name, "%s", optarg);*/
@@ -228,7 +234,6 @@
case 'f':
case 'r': /* ignored */
- case 'y':
break;
case 'V': /* cause fsck to do nothing */
@@ -414,7 +419,9 @@
"Will put log info to '%s'\n",
(data->log == stdout) ? "stdout" : (data->log_file_name ?: "fsck.run"));
- if (!user_confirmed (warn_to,
+ if (data->mode == FSCK_CHECK && (data->options & OPT_YES))
+ /* inhibit confirmation */;
+ else if (!user_confirmed (warn_to,
"\nDo you want to run this program?[N/Yes] (note need to type Yes if you do):", "Yes\n"))
exit (0);
}
diff -ru reiserfsprogs-3.6.4/fsck/reiserfsck.8 new_reiserfsprogs-3.6.4/fsck/reiserfsck.8
--- reiserfsprogs-3.6.4/fsck/reiserfsck.8 Fri Oct 25 14:51:54 2002
+++ new_reiserfsprogs-3.6.4/fsck/reiserfsck.8 Sat Mar 15 02:24:08 2003
@@ -89,6 +89,11 @@
.B --quiet, -q
This option prevents \fBreiserfsck\fR from reporting its rate of progress.
.TP
+.B --yes, -y
+This option inhibits \fBreiserfsck\fR from asking you for confirmation after
+telling you what it is going to do, assuming yes. For safety, it only works
+together with the --check option.
+.TP
\fB-a\fR, \fB-p\fR
These options are usually passed by fsck -A during the automatic
checking of /etc/fstab partitions. For compatibility, these options
@@ -100,11 +105,8 @@
.B -V
This option prints the reiserfsprogs version and exit.
.TP
-\fB-r\fR, \fB-p\fR, \fB-y\fR
+\fB-r\fR, \fB-f\fR
These options are ignored.
-.TP
-.B -V\fR, \fB-f\fR
-prints version and exits
.SH EXPERT OPTIONS
DO NOT USE THESE OPTIONS UNLESS YOU KNOW WHAT YOU ARE DOING.
WE ARE NOT RESPONSIBLE IF YOU LOSE DATA AS A RESULT OF THESE
debian/quietmkfs.diff.nolongerapplied 0000644 0000000 0000000 00000003521 11232262654 015215 0 ustar --- reiserfsprogs-3.6.6.orig/mkreiserfs/mkreiserfs.c 2003-04-22 07:56:50.000000000 -0600
+++ reiserfsprogs-3.6.6/mkreiserfs/mkreiserfs.c 2003-04-25 23:01:03.000000000 -0600
@@ -81,7 +81,8 @@
" disk, not block device or mounted partition;\n"
" specified twice, do not ask for confirmation\n"
" -d | --debug print debugging information during mkreiser\n"
- " -V print version and exit\n",
+ " -V print version and exit\n"
+ " -q | --quiet do not output sponsorship message at completion\n",
program_name);
exit (1);
}
@@ -91,6 +92,7 @@
int Create_default_journal = 1;
int Block_size = 4096;
int DEBUG_MODE = 0;
+int quiet = 0;
/* size of journal + 1 block for journal header */
unsigned long Journal_size = 0;
@@ -546,11 +548,12 @@
{"uuid", required_argument, 0, 'u'},
{"label", required_argument, 0, 'l'},
{"format", required_argument, &flag, 1},
+ {"quiet", no_argument, 0, 'q'},
{0, 0, 0, 0}
};
int option_index;
- c = getopt_long (argc, argv, "b:j:s:t:o:h:u:l:Vfd",
+ c = getopt_long (argc, argv, "b:j:s:t:o:h:u:l:Vfdq",
options, &option_index);
if (c == -1)
break;
@@ -599,7 +602,7 @@
break;
case 'V':
- exit (1);
+ exit (0);
case 'f':
force ++;
@@ -620,7 +623,11 @@
case 'l':
LABEL = optarg;
break;
-
+
+ case 'q':
+ quiet = 1;
+ break;
+
default:
print_usage_and_exit();
}
@@ -712,7 +719,7 @@
sync ();
printf ("ok\n");
- if (DEBUG_MODE)
+ if (DEBUG_MODE || quiet)
return 0;
printf ("\nThe Defense Advanced Research Projects Agency (DARPA) is the primary sponsor of"
"\nReiser4. DARPA does not endorse this project; it merely sponsors it."
debian/rules 0000755 0000000 0000000 00000003625 12257567667 010303 0 ustar #! /usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#include /usr/share/cdbs/1/rules/simple-patchsys.mk
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB=reiserfsprogs
SMALLUDEB=mkreiserfs-udeb
FULLUDEB=reiserfsprogs-udeb
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: configure
dh_testdir
dh_autotools-dev_updateconfig
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --mandir=\$${prefix}/share/man --sbindir=/sbin $(shell dpkg-buildflags --export=configure)
build: build-arch build-indep
build-stamp: config.status
dh_testdir
$(MAKE)
touch build-stamp
build-arch: build-stamp
build-indep:
clean::
dh_testdir
dh_testroot
rm -f build-stamp
[ ! -f Makefile ] || $(MAKE) distclean
dh_autotools-dev_restoreconfig
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
dh_install --sourcedir=debian/tmp
install -m 755 debian/fsck.reiserfs debian/$(DEB)/sbin
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installman
dh_link -p$(DEB) usr/share/man/man8/mkreiserfs.8.gz usr/share/man/man8/mkfs.reiserfs.8.gz
dh_link -p$(DEB) usr/share/man/man8/reiserfsck.8.gz usr/share/man/man8/fsck.reiserfs.8.gz
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
debian/patches/ 0000755 0000000 0000000 00000000000 12212640074 010613 5 ustar debian/patches/00_escape_dashes_in_manpages.diff 0000644 0000000 0000000 00000024113 12212640074 017075 0 ustar diff -ur reiserfsprogs-3.6.21.orig/debugreiserfs/debugreiserfs.8.in reiserfsprogs-3.6.21/debugreiserfs/debugreiserfs.8.in
--- reiserfsprogs-3.6.21.orig/debugreiserfs/debugreiserfs.8.in 2009-01-10 13:18:34.000000000 +0100
+++ reiserfsprogs-3.6.21/debugreiserfs/debugreiserfs.8.in 2009-03-06 18:13:37.000000000 +0100
@@ -31,7 +31,7 @@
.SH OPTIONS
.TP
\fB-j\fR \fIdevice\fR
-prints the contents of the journal. The option -p allows it to pack the journal
+prints the contents of the journal. The option \-p allows it to pack the journal
with other metadata into the archive.
.TP
\fB-J\fR
@@ -61,22 +61,22 @@
.\" formatted nodes found. Can be used to find specific key in the filesystem.
.\" .TP
.B -p
-extracts the filesystem's metadata with \fBdebugreiserfs\fR -p /dev/xxx | gzip -c >
+extracts the filesystem's metadata with \fBdebugreiserfs\fR \-p /dev/xxx | gzip \-c >
xxx.gz. None of your data are packed unless a filesystem corruption presents when
the whole block having this corruption is packed. You send us the output, and we use
-it to create a filesystem with the same strucure as yours using \fBdebugreiserfs -u\fR.
+it to create a filesystem with the same strucure as yours using \fBdebugreiserfs \-u\fR.
When the data file is not too large, this usually allows us to quickly reproduce
and debug the problem.
.TP
.B -u
-builds the ReiserFS filesystem image with gunzip -c xxx.gz | \fBdebugreiserfs\fR
--u /dev/image of the previously packed metadata with \fBdebugreiserfs -p\fR. The
+builds the ReiserFS filesystem image with gunzip \-c xxx.gz | \fBdebugreiserfs\fR
+\-u /dev/image of the previously packed metadata with \fBdebugreiserfs \-p\fR. The
result image is not the same as the original filesystem, because mostly only metadata
-were packed with \fBdebugreiserfs -p\fR, but the filesystem structure is completely
+were packed with \fBdebugreiserfs \-p\fR, but the filesystem structure is completely
recreated.
.TP
.B -S
-When -S is not specified -p
+When \-S is not specified \-p
.\" and -s
deals with blocks marked used in the filesystem bitmap only. With this option
set \fBdebugreiserfs\fR will work with the entire device.
@@ -84,7 +84,7 @@
.B -q
When
.\" -s or
--p is in use, suppress showing the speed of progress.
+\-p is in use, suppress showing the speed of progress.
.SH AUTHOR
This version of \fBdebugreiserfs\fR has been written by Vitaly Fertman
.
diff -ur reiserfsprogs-3.6.21.orig/fsck/reiserfsck.8.in reiserfsprogs-3.6.21/fsck/reiserfsck.8.in
--- reiserfsprogs-3.6.21.orig/fsck/reiserfsck.8.in 2009-01-10 13:18:34.000000000 +0100
+++ reiserfsprogs-3.6.21/fsck/reiserfsck.8.in 2009-03-06 18:23:33.000000000 +0100
@@ -59,10 +59,10 @@
.B --rebuild-tree
This option rebuilds the entire filesystem tree using leaf nodes
found on the device. Normally you only need this option if the
-\fBreiserfsck --check\fR reports "Running with \fB--rebuild-tree\fR
+\fBreiserfsck \-\-check\fR reports "Running with \fB\-\-rebuild-tree\fR
is required". You are strongly encouraged to make a backup copy
of the whole partition before attempting the \fB--rebuild-tree\fR
-option. Once \fBreiserfsck --rebuild-tree\fR is started it must
+option. Once \fBreiserfsck \-\-rebuild-tree\fR is started it must
finish its work (and you should not interrupt it), otherwise the
filesystem will be left in the unmountable state to avoid subsequent
data corruptions.
@@ -95,7 +95,7 @@
This option sets the badblock list to be the list of blocks specified in
the given `file`. The filesystem badblock list is cleared before the new
list is added. It can be used with \fB--fix-fixable\fR to fix the list of
-badblocks (see \fBdebugreiserfs -B\fR). If the device has bad blocks, every
+badblocks (see \fBdebugreiserfs \-B\fR). If the device has bad blocks, every
time it must be given with the \fB--rebuild-tree\fR option.
.TP
\fB--logfile \fIfile\fR, \fB-l \fI file\fR
@@ -114,7 +114,7 @@
it does not work with the \fB--rebuild-tree\fR option.
.TP
\fB-a\fR, \fB-p\fR
-These options are usually passed by fsck -A during the automatic checking
+These options are usually passed by fsck \-A during the automatic checking
of those partitions listed in /etc/fstab. These options cause \fBreiserfsck\fR
to print some information about the specified filesystem, to check if error
flags in the superblock are set and to do some light-weight checks. If these
@@ -149,23 +149,23 @@
1. You think something may be wrong with a reiserfs partition on /dev/hda1
or you would just like to perform a periodic disk check.
-2. Run \fBreiserfsck --check --logfile check.log /dev/hda1\fR. If \fBreiserfsck
---check\fR exits with status 0 it means no errors were discovered.
+2. Run \fBreiserfsck \-\-check \-\-logfile check.log /dev/hda1\fR. If \fBreiserfsck
+\-\-check\fR exits with status 0 it means no errors were discovered.
-3. If \fBreiserfsck --check\fR exits with status 1 (and reports about fixable
-corruptions) it means that you should run \fBreiserfsck --fix-fixable --logfile
+3. If \fBreiserfsck \-\-check\fR exits with status 1 (and reports about fixable
+corruptions) it means that you should run \fBreiserfsck \-\-fix-fixable \-\-logfile
fixable.log /dev/hda1\fR.
-4. If \fBreiserfsck --check\fR exits with status 2 (and reports about fatal
-corruptions) it means that you need to run \fBreiserfsck --rebuild-tree\fR.
-If \fBreiserfsck --check\fR fails in some way you should also run \fBreiserfsck
---rebuild-tree\fR, but we also encourage you to submit this as a bug report.
+4. If \fBreiserfsck \-\-check\fR exits with status 2 (and reports about fatal
+corruptions) it means that you need to run \fBreiserfsck \-\-rebuild\-tree\fR.
+If \fBreiserfsck \-\-check\fR fails in some way you should also run \fBreiserfsck
+\-\-rebuild-tree\fR, but we also encourage you to submit this as a bug report.
-5. Before running \fBreiserfsck --rebuild-tree\fR, please make a backup of
-the whole partition before proceeding. Then run \fBreiserfsck --rebuild-tree
---logfile rebuild.log /dev/hda1\fR.
+5. Before running \fBreiserfsck \-\-rebuild-tree\fR, please make a backup of
+the whole partition before proceeding. Then run \fBreiserfsck \-\-rebuild-tree
+\-\-logfile rebuild.log /dev/hda1\fR.
-6. If the \fBreiserfsck --rebuild-tree\fR step fails or does not recover what
+6. If the \fBreiserfsck \-\-rebuild-tree\fR step fails or does not recover what
you expected, please submit this as a bug report. Try to provide as much
information as possible including your platform and Linux kernel version. We
will try to help solve the problem.
@@ -180,11 +180,11 @@
.br
\ \fI4\fR \-\ File system fatal errors left uncorrected,
.br
-\ \fBreiserfsck --rebuild-tree\fR needs to be launched.
+\ \fBreiserfsck \-\-rebuild-tree\fR needs to be launched.
.br
\ \fI6\fR \-\ File system fixable errors left uncorrected,
.br
-\ \fBreiserfsck --fix-fixable\fR needs to be launched.
+\ \fBreiserfsck \-\-fix-fixable\fR needs to be launched.
.br
\ \fI8\fR \-\ Operational error.
.br
Nur in reiserfsprogs-3.6.21/include: credits.h.
diff -ur reiserfsprogs-3.6.21.orig/mkreiserfs/mkreiserfs.8.in reiserfsprogs-3.6.21/mkreiserfs/mkreiserfs.8.in
--- reiserfsprogs-3.6.21.orig/mkreiserfs/mkreiserfs.8.in 2009-01-10 15:07:37.000000000 +0100
+++ reiserfsprogs-3.6.21/mkreiserfs/mkreiserfs.8.in 2009-03-06 18:14:29.000000000 +0100
@@ -88,7 +88,7 @@
\fB-B\fR | \fB--badblocks \fIfile
\fIFile\fR is the file name of the file that contains the list of blocks to be
marked as bad on the filesystem. This list can be created by
-\fB/sbin/badblocks -b block-size device\fR.
+\fB/sbin/badblocks \-b block-size device\fR.
.TP
\fB-f\fR
Forces \fBmkreiserfs\fR to continue even when the device is the whole disk,
diff -ur reiserfsprogs-3.6.21.orig/resize_reiserfs/resize_reiserfs.8.in reiserfsprogs-3.6.21/resize_reiserfs/resize_reiserfs.8.in
--- reiserfsprogs-3.6.21.orig/resize_reiserfs/resize_reiserfs.8.in 2009-01-10 13:18:34.000000000 +0100
+++ reiserfsprogs-3.6.21/resize_reiserfs/resize_reiserfs.8.in 2009-03-06 18:19:00.000000000 +0100
@@ -102,7 +102,7 @@
.br
\ umount /mnt
.br
-\ resize_reiserfs -s -1G /dev/hda8
+\ resize_reiserfs \-s \-1G /dev/hda8
.br
\ mount /dev/hda8 /mnt
.br
diff -ur reiserfsprogs-3.6.21.orig/tune/reiserfstune.8.in reiserfsprogs-3.6.21/tune/reiserfstune.8.in
--- reiserfsprogs-3.6.21.orig/tune/reiserfstune.8.in 2009-01-10 13:18:34.000000000 +0100
+++ reiserfsprogs-3.6.21/tune/reiserfstune.8.in 2009-03-06 18:21:02.000000000 +0100
@@ -197,14 +197,14 @@
.nf
.IP
boot kernel patched with special "relocatable journal support" patch
-reiserfstune /dev/hda1 --journal-new-device /dev/journal -f
+reiserfstune /dev/hda1 \-\-journal\-new\-device /dev/journal \-f
mount /dev/hda1 and use.
You would like to change max transaction size to 512 blocks
-reiserfstune -t 512 /dev/hda1
+reiserfstune \-t 512 /dev/hda1
You would like to use your file system on another kernel that doesn't
contain relocatable journal support.
umount /dev/hda1
-reiserfstune /dev/hda1 -j /dev/journal --journal-new-device /dev/hda1 --make-journal-standard
+reiserfstune /dev/hda1 \-j /dev/journal \-\-journal\-new\-device /dev/hda1 \-\-make\-journal\-standard
mount /dev/hda1 and use.
.LP
2. You would like to have ReiserFS on /dev/hda1 and to be able to
@@ -215,13 +215,13 @@
boot kernel patched with special "relocatable journal support" patch
mkreiserfs /dev/hda1
you got solid state disk (perhaps /dev/sda, they typically look like scsi disks)
-reiserfstune --journal-new-device /dev/sda1 -f /dev/hda1
+reiserfstune \-\-journal\-new\-device /dev/sda1 \-f /dev/hda1
Your scsi device dies, it is three in the morning, you have an extra IDE device
lying around
-reiserfsck --no-journal-available /dev/hda1
+reiserfsck \-\-no\-journal\-available /dev/hda1
or
-reiserfsck --rebuild-tree --no-journal-available /dev/hda1
-reiserfstune --no-journal-available --journal-new-device /dev/hda1 /dev/hda1
+reiserfsck \-\-rebuild-tree \-\-no\-journal\-available /dev/hda1
+reiserfstune \-\-no\-journal\-available \-\-journal\-new\-device /dev/hda1 /dev/hda1
using /dev/hda1 under patched kernel
.SH AUTHOR
This version of \fBreiserfstune\fR has been written by Vladimir
debian/patches/series 0000644 0000000 0000000 00000000042 12212637173 012032 0 ustar 00_escape_dashes_in_manpages.diff
debian/watch 0000644 0000000 0000000 00000000204 12255575240 010222 0 ustar version=3
ftp://ftp.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v([\d\.]+)/reiserfsprogs-([\d\.]+).tar.gz debian uupdate
debian/README.Debian 0000644 0000000 0000000 00000001242 11232262654 011231 0 ustar reiserfsprogs for Debian
------------------------
Releases of Linux prior to 2.4.1 do not support ReiserFS on their own. Thus,
these tools will only be useful with Linux 2.4.1 or later, or if your kernel
has been built with the ReiserFS patch applied. This patch can be found in the
appropriate kernel-patch--reiserfs packages.
NOTE: mkreiserfs builds version 3.6 filesystems by default. In order to create
a 3.5 filesystem (i.e., a Linux 2.2-mountable filesystem), you must provide
the -v1 option when invoking mkreiserfs. To reiterate, version 3.6 filesystems
are not mountable under Linux 2.2.
-- Ed Boraas , Fri, 09 Feb 2001 18:41:46 -0700
debian/mkfs.reiserfs 0000644 0000000 0000000 00000000163 11232262654 011675 0 ustar #! /bin/sh
# Be sure to invoke mkreiserfs noninteractively for the debian-installer
exec /sbin/mkreiserfs -q "$@"
debian/copyright 0000644 0000000 0000000 00000001321 11232262654 011121 0 ustar This package has been taken over by Felix Zielcke on
Sun, 08 Feb 2009 14:49:50 +0100
This package was debianized by Ed Boraas on
Sat, 30 Sep 2000 18:41:46 -0600.
It was downloaded from ftp://ftp.kernel.org/pub/linux/utils/fs/reiserfs/
Upstream Authors: Hans Reiser , et al.
For a more extensive listing of authors and contributors, see
/usr/share/doc/reiserfsprogs/README.
Copyright (C) 1996-2004 by Hans Reiser
License:
GNU General Public License, version 2, found in
/usr/share/common-licenses/GPL-2 on Debian systems.
Furthermore, licensing clarifications have been provided by the
upstream authors within /usr/share/doc/reiserfsprogs/README.
debian/reiserfsprogs.install 0000644 0000000 0000000 00000000250 12257566571 013470 0 ustar sbin/mkfs.reiserfs sbin/
sbin/mkreiserfs sbin/
sbin/reiserfsck sbin/
sbin/resize_reiserfs sbin/
sbin/debugreiserfs sbin/
sbin/reiserfstune sbin/
debian/changelog 0000644 0000000 0000000 00000035601 12260271404 011043 0 ustar reiserfsprogs (1:3.6.24-1) unstable; urgency=low
* New upstream version.
* Convert to Source Format 3.0 (quilt).
* Remove DMUA field.
* Add a ${misc:Depends} dependency.
* Drop build dependency on cdbs.
* Use dpkg-buildflags for hardened build flags.
* Update to policy 3.9.5.
* Update watch file.
* Use dh_autotools-dev_updateconfig to update config.guess and
cobfig.sub at build time.
* Update to debhelper compat level 9.
-- Felix Zielcke Sat, 28 Dec 2013 15:16:43 +0100
reiserfsprogs (1:3.6.21-1) unstable; urgency=low
* New maintainer (Closes: #483025)
* New upstream version.
* Add a watch file.
* Bump standards version to 3.8.0.
* Remove DH_COMPAT from debian/rules and add a debian/compat file and bump
debhelper compat level and build-dep to 7.
* Remove homepage from description.
* Change download url in debian/copyright to the kernel.org one.
* Add appropriate Copyright holder to debian/copyright.
* Change license path to GPL-2 in debian/copyright.
* Add a build dependency on autotools-dev and update config.guess and
config.sub in the clean target.
* Add a build dependency on CDBS and use the simple-patchsys.mk
* Add `-a' to fsck.reiserfs flags if `-y' was given. Patch by Federico Heinz.
(Closes: #498087)
* Don't ignore make distclean errors.
* Replace `pwd` with $(CURDIR) in debian/rules.
* Remove unneeded lintian overrides.
* Replace deprecated `dh_clean -k' with `dh_prep'.
* Remove Priority field from binary packages in debian/control.
* debian/patches/00_escape_dashes_in_manpagecape.diff: New patch to escape
dashes in the manpages.
-- Felix Zielcke Fri, 06 Mar 2009 18:32:13 +0100
reiserfsprogs (1:3.6.19-6) unstable; urgency=low
* Remove linux-kernel-headers from Build-Depends.
* Merge from Ubuntu:
- definitively drop inclusion of asm/unaligned.h (Closes: #429006).
-- Domenico Andreoli Tue, 17 Jul 2007 02:26:04 +0200
reiserfsprogs (1:3.6.19-5) unstable; urgency=low
* Added linux-kernel-headers to Build-Depends (Closes: #429006).
-- Domenico Andreoli Wed, 04 Jul 2007 00:56:48 +0200
reiserfsprogs (1:3.6.19-4ubuntu2) feisty; urgency=low
* Changed man page for mkreiserfs to note that block sizes other than
4096 bytes are NOT supported by current kernels
-- Phillip Susi Wed, 13 Dec 2006 14:23:15 -0500
reiserfsprogs (1:3.6.19-4ubuntu1) feisty; urgency=low
* Merge from Debian unstable. Remaining Ubuntu change:
- include/reiserfs_fs.h: Do not #include , FTBFS fix.
-- Martin Pitt Mon, 30 Oct 2006 10:45:35 +0100
reiserfsprogs (1:3.6.19-4) unstable; urgency=low
* fsck.reiserfs is now a script invoking reiserfsck -q (Closes: #385155).
-- Domenico Andreoli Thu, 28 Sep 2006 13:08:24 +0200
reiserfsprogs (1:3.6.19-3ubuntu1) edgy; urgency=low
* include/reiserfs_fs.h: Do not #include . It does not
exist any more and should not be necessary on our architectures. Instead
define {get,put}_aligned macros as naive macros. Fixes FTBFS.
(LP: #65842)
-- Martin Pitt Fri, 13 Oct 2006 14:41:06 +0200
reiserfsprogs (1:3.6.19-3) unstable; urgency=low
* Fixed typos in man pages (Closes: #371849, #371850, #371851, #371852).
-- Domenico Andreoli Fri, 30 Jun 2006 12:29:49 +0200
reiserfsprogs (1:3.6.19-2) unstable; urgency=low
* Fixed typo in reiserfstune's manpage (Closes: #309512).
* Removed obsolete NOTE in reiserfsprogs' package description
(Closes: #249204).
* Applied patch to make reiserfsck display volume labels (Closes: #345948).
* Updated HTML man pages from upstream site. attrs mount option is
now documented in mount-options.html (Closes: #270006).
-- Domenico Andreoli Wed, 1 Mar 2006 18:08:55 +0100
reiserfsprogs (1:3.6.19-1) unstable; urgency=low
* New upstream release:
- fixed error message for invalid device (Closes: #266648).
-- Domenico Andreoli Fri, 15 Oct 2004 13:43:08 +0200
reiserfsprogs (1:3.6.18-4) unstable; urgency=low
* Uses debhelper to build udebs. Cleaned and updated the build process.
-- Domenico Andreoli Fri, 3 Sep 2004 18:48:12 +0200
reiserfsprogs (1:3.6.18-3) unstable; urgency=low
* Changed header used to guess the architecture for hack applied in -2.
-- Domenico Andreoli Sun, 8 Aug 2004 21:57:52 +0200
reiserfsprogs (1:3.6.18-2) unstable; urgency=low
* Applied hack to build also on powerpc with broken linux-kernel-headers.
-- Domenico Andreoli Sun, 8 Aug 2004 14:44:30 +0200
reiserfsprogs (1:3.6.18-1) unstable; urgency=low
* New upstream release.
-- Domenico Andreoli Tue, 3 Aug 2004 19:29:12 +0200
reiserfsprogs (1:3.6.17-2) unstable; urgency=low
* Added build dependency on uuid-dev (Closes: #254480).
-- Domenico Andreoli Tue, 15 Jun 2004 10:27:59 +0200
reiserfsprogs (1:3.6.17-1) unstable; urgency=low
* New upstream release.
* Updated and fixed debian/copyright (Closes: #246687).
-- Domenico Andreoli Fri, 14 May 2004 12:57:41 +0200
reiserfsprogs (1:3.6.14-3) unstable; urgency=low
* Removed postinst and prerm, used to manage hard links to mkreiserfs
and reiserfsck.
-- Domenico Andreoli Tue, 20 Apr 2004 11:31:44 +0200
reiserfsprogs (1:3.6.14-2) unstable; urgency=low
* Hard links to /sbin/mkreiserfs and /sbin/reiserfsck are now also
in the reiserfsprogs package (Closes: #244761).
-- Domenico Andreoli Tue, 20 Apr 2004 00:46:01 +0200
reiserfsprogs (1:3.6.14-1) unstable; urgency=low
* New upstream release.
-- Domenico Andreoli Fri, 19 Mar 2004 11:26:55 +0100
reiserfsprogs (1:3.6.13-1) unstable; urgency=low
* New upstream release:
- should fix checking of read-only filesystems (Closes: #233219)
-- Domenico Andreoli Wed, 18 Feb 2004 00:49:23 +0100
reiserfsprogs (1:3.6.12-1) unstable; urgency=low
* New upstream release:
- fixed some non-4k-block-size issues (Closes: #212517)
* Added new uploader (me)
* reiserfsck is now built statically to work around known bug
(Closes: #230482)
-- Domenico Andreoli Sat, 14 Feb 2004 16:40:39 +0100
reiserfsprogs (1:3.6.11-1.1) unstable; urgency=low
* NMU with Ed's permission.
* Applied patch from "Straightening out ioctl() size confusion"
discussion (closes: #219627).
* Fixed interactive invocation of mkreiserfs by d-i (Closes: #213314).
-- Domenico Andreoli Mon, 22 Dec 2003 15:13:54 +0100
reiserfsprogs (1:3.6.11-1) unstable; urgency=low
* New upstream release (Closes: #204288)
* Build .udeb packages for debian-installer (Closes: #203002)
* Superblock check behavior seems to be fixed upstream
* -y option incorporated upstream
-- Ed Boraas Tue, 12 Aug 2003 21:40:35 -0600
reiserfsprogs (1:3.6.6-3) unstable; urgency=low
* Fix typo in superblock fix
-- Ed Boraas Wed, 30 Apr 2003 11:01:23 -0600
reiserfsprogs (1:3.6.6-2) unstable; urgency=low
* Do not check superblock journal parameters unless
they're expected to be correct (Closes: #191050)
-- Ed Boraas Wed, 30 Apr 2003 06:51:26 -0600
reiserfsprogs (1:3.6.6-1) unstable; urgency=low
* New upstream release (Closes: #187611)
* Upstream now includes a "proper" replacement for
David Kimdon's patches
* Update HTML "man" pages
-- Ed Boraas Fri, 25 Apr 2003 22:55:17 -0600
reiserfsprogs (1:3.6.4-5) unstable; urgency=low
* Include upstream README
* Output sponsorship message once again, if
mkreiserfs is invoked without --quiet
* Refer to licensing clarifications from 'copyright'
* -V exits returning 0 (Closes: #183868)
-- Ed Boraas Wed, 23 Apr 2003 16:16:16 -0600
reiserfsprogs (1:3.6.4-4) unstable; urgency=low
* Rebuild as non-native package (oops)
(Closes: #185723)
-- Ed Boraas Sat, 22 Mar 2003 16:29:14 -0700
reiserfsprogs (1:3.6.4-3) unstable; urgency=low
* Add -y option [Thanks, Tommy Pettersson!]
(Closes: #130075)
-- Ed Boraas Sun, 16 Mar 2003 11:21:03 -0700
reiserfsprogs (1:3.6.4-2) unstable; urgency=low
* Apply patches from David Kimdon to allow build on
hppa and sparc -- thanks, David!
(Closes: #170619)
* Remove over-verbose startup warning in reiserfsck
(Closes: #171121)
* Adjust reiserfsck banner to fit on one line, instead of
three (Closes: #119033)
* mkreiserfs advertising removed
(Closes: #152547)
* Build as non-native package (oops)
* Update to policy 3.5.8
* Refer to /usr/share/common-licenses in debian/copyright
-- Ed Boraas Mon, 6 Jan 2003 19:31:47 -0700
reiserfsprogs (1:3.6.4-1) unstable; urgency=low
* New upstream release
- Corruption on cancelled reiserfsck reported fixed
(Closes: #155241)
-- Ed Boraas Tue, 19 Nov 2002 07:10:14 -0700
reiserfsprogs (1:3.6.3-1) unstable; urgency=low
* New upstream release (Closes: #159861)
-- Ed Boraas Sun, 8 Sep 2002 15:20:51 -0600
reiserfsprogs (1:3.6.2-1) unstable; urgency=low
* New upstream release (Closes: #153709)
* Included many more html docs from the ReiserFS website
* New (saner) version numbering scheme requires an epoch
-- Ed Boraas Mon, 29 Jul 2002 07:18:54 -0600
reiserfsprogs (3.x.1b-1) unstable; urgency=low
* New upstream release (Closes: #139315)
* Last version built fine on ia64, assuming this one will as well
(Closes: #124121)
* Make reiserfsck -y do nothing (upstream explicitly ignores -y)
(Closes: #140014)
-- Ed Boraas Sat, 23 Mar 2002 15:00:37 -0700
reiserfsprogs (3.x.1a-2) unstable; urgency=high
* Reinstate mkreiserfs options "-v" and "-q" (Closes: #137755)
- Urgency=high because this bug breaks boot floppies
-- Ed Boraas Sun, 10 Mar 2002 15:10:56 -0700
reiserfsprogs (3.x.1a-1) unstable; urgency=medium
* New upstream release (Closes: #128512)
- Appears not to suffer from spurious 'device to small' errors
(Closes: #110902)
- Verified able to create filesystems on loopbacks >= 2GB
(Closes: #120966)
- reiserfsck is much more robust in error-handling (Closes: #122230)
- mkreiserfs correctly makes filesystems in files, when forced
to do so (Closes: #128801)
- New reiserfsck is clear about when to use options other than
--check (Closes: #128803)
- user_confirmed() calls fixed in mkreiserfs.c to account for
newlines (Closes: #130149)
-- Ed Boraas Sat, 9 Feb 2002 13:48:17 -0700
reiserfsprogs (3.x.0j-7) unstable; urgency=low
* Set "Architecture: any" (Closes: #114824)
-- Ed Boraas Tue, 9 Oct 2001 06:40:42 -0600
reiserfsprogs (3.x.0j-6) unstable; urgency=low
* reiserfsck now recorgnizes (and ignores) a "-f" option
as in 3.x.0k-pre (Closes: #96397)
-- Ed Boraas Mon, 30 Jul 2001 21:23:11 -0600
reiserfsprogs (3.x.0j-5) unstable; urgency=low
* Fix typo in resize_reiserfs(8) manpage (Closes: #106972)
-- Ed Boraas Mon, 30 Jul 2001 20:47:54 -0600
reiserfsprogs (3.x.0j-4) unstable; urgency=low
* Restrict arch to i386/alpha, as no other ports
have kernel support for ReiserFS (Closes: #103792)
-- Ed Boraas Wed, 11 Jul 2001 20:13:19 -0600
reiserfsprogs (3.x.0j-3) unstable; urgency=low
* Included fs.html and mount-options.html documents from
the ReiserFS website (Closes: #97706)
-- Ed Boraas Tue, 19 Jun 2001 16:51:34 -0600
reiserfsprogs (3.x.0j-2) unstable; urgency=low
* Include information on creating 2.2-mountable (ReiserFS
3.5) filesystems in the README.Debian (Closes: #95990)
* Happy May Day!
-- Ed Boraas Tue, 1 May 2001 23:10:40 -0600
reiserfsprogs (3.x.0j-1) unstable; urgency=low
* New upstream release
-- Ed Boraas Wed, 4 Apr 2001 18:44:14 -0600
reiserfsprogs (3.x.0h-3) unstable; urgency=low
* Added support for double-force on mkreiserfs, for boot
floppies (Closes: #90163)
-- Ed Boraas Tue, 27 Mar 2001 18:29:15 -0700
reiserfsprogs (3.x.0h-2) unstable; urgency=low
* Updated to policy v3.5.2
* Included Build-Depends (Closes: #90439)
-- Ed Boraas Tue, 20 Mar 2001 06:34:10 -0700
reiserfsprogs (3.x.0h-1) unstable; urgency=low
* New upstream release
-- Ed Boraas Tue, 13 Mar 2001 15:33:48 -0700
reiserfsprogs (3.x.0d-3) unstable; urgency=low
* '-y' now does nothing, instead of forcing a check on each boot
-- Ed Boraas Tue, 13 Mar 2001 15:06:41 -0700
reiserfsprogs (3.x.0d-2) unstable; urgency=low
* Basic support for -y option in reiserfsck, based on patch submitted
by Eduard Bloch (Closes: #87215)
-- Ed Boraas Tue, 6 Mar 2001 06:15:23 -0700
reiserfsprogs (3.x.0d-1) unstable; urgency=low
* New upstream release
* Last of Alpha problems (should be) fixed (Closes: #83941)
* Upstream now includes manpages (Closes: #74650)
-- Ed Boraas Sun, 25 Feb 2001 11:52:47 -0700
reiserfsprogs (3.x.0a-2) unstable; urgency=low
* lib/misc.c now #includes io.h; I assume this (Closes: #76008)
* lib/misc.c again #includes sys/mount.h (Not yet folded upstream)
* Updated README.Debian and package info to reflect the fact that Linux
2.4.1 and up have built-in reiserfs support.
-- Ed Boraas Fri, 09 Feb 2001 18:35:14 -0700
reiserfsprogs (3.x.0a-1) unstable; urgency=low
* New upstream release
* Updated to policy version 3.2.1
-- Ed Boraas Sun, 21 Jan 2001 20:18:34 -0700
reiserfsprogs (3.0.20001019-3) unstable; urgency=low
* Paper-bag bugfix: shebang missing from postinst
* Added prerm script to clean up after postinst
* postinst will no longer bail if the hardlinks already exist
-- Ed Boraas Mon, 30 Oct 2000 19:56:23 -0700
reiserfsprogs (3.0.20001019-2) unstable; urgency=low
* Added LDFLAGS = -lm in fsck/ for x-platform compliance (Closes: #74943)
* Now installs to /sbin instead of /usr/sbin
* lib/misc.c '#include's (Closes: #74833)
* Created mkfs.reiserfs and fsck.reiserfs hardlinks (Closes: #59833)
-- Ed Boraas Sat, 28 Oct 2000 15:24:54 -0600
reiserfsprogs (3.0.20001019-1) unstable; urgency=low
* New upstream snapshot
-- Ed Boraas Thu, 19 Oct 2000 17:16:26 -0600
reiserfsprogs (3.0.20001007-1) unstable; urgency=low
* New upstream release
* Version number updated to reflect snapshot date, as upstream
is not versioning new releases
-- Ed Boraas Sat, 8 Oct 2000 00:17:37 -0600
reiserfsprogs (3.0-1) unstable; urgency=low
* Initial Release.
-- Ed Boraas Sat, 30 Sep 2000 18:41:46 -0600
debian/mkreiserfs-udeb.dirs 0000644 0000000 0000000 00000000005 11232262654 013136 0 ustar sbin