Expand HAMMER filesystem step 1/2
authorMichael Neumann <mneumann@ntecs.de>
Tue, 14 Jul 2009 13:55:02 +0000 (15:55 +0200)
committerMichael Neumann <mneumann@ntecs.de>
Tue, 14 Jul 2009 13:55:02 +0000 (15:55 +0200)
commit90ecab35525ea3637a59763d75df6712ff91728a
tree5ec044940f86104c0325a06c57f0c24867fad7fd
parente27700cf61d99481757be0ced3c719273d199a9f
Expand HAMMER filesystem step 1/2

Format the volume and increase other volumes' vol_count field.
The space of the new volume is not yet given to the filesystem (that's step 2).

Example:

newfs_hammer -L TEST /dev/da0
mount_hammer /dev/da0 /hammer
hammer expand /hammer /dev/da1
umount /hammer
mount_hammer /dev/da0:/dev/da1 /hammer

# the following fails (wrong number of volumes)
mount_hammer /dev/da0 /hammer
sbin/hammer/cmd_expand.c
sys/vfs/hammer/hammer_expand.c
sys/vfs/hammer/hammer_ioctl.h