summaryrefslogtreecommitdiff
path: root/bin/mv
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-02-16 08:34:30 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-02-16 08:34:30 +0000
commit5066e68b81c9309d61a1c3186a9aab6d328c512b (patch)
treeb04a2fb33530c9abc2ae83727152591ffa37c18c /bin/mv
parent3785927835d9a409f8e57c22fee8d3bd324c90b4 (diff)
Fix a row of bugs in the code that computes the alternate superblock
locations based on the disklabel. - unit bug: disklabel size is in sectors, but superblock fs size is in fragments. - The disklabel contains the maximum superblock size, not the actual as used by newfs. - problem is that mkfs reduces track/sector and secors/track to make the cylindergroup fit in a fs block. In this case the values in the disklabel do not predict what's in the superblock. This fixes all these problems. It correctly predicts the location of all superblocks on all my filesystems I have online (sized between 100MB and 1000GB). Also tested with filesystems with different block and fragment sizes. Written this with a goto to make the diff easier to read. ok krw@ deraadt@
Diffstat (limited to 'bin/mv')
0 files changed, 0 insertions, 0 deletions