]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFstable/10 r290599:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 09:29:38 +0000 (09:29 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Nov 2015 09:29:38 +0000 (09:29 +0000)
commit96946f36bb76efc0e0fe077027a1ecad3cd8d842
tree4a46af9eb92cd4574efe5c2f34db96e8ed0c8af1
parent7f322ebb09ae7be67657eadd871b74e9e28bde65
MFstable/10 r290599:

MFC r266930,r289225:

r266930 (by jmg):

convert to using the _daddr_t types like newfs was...

Put the superblock in the correct possition for UFS2... There is a bug
in FFS that if we don't put it here (for UFS2), it will forcefully
relocate the superblock, and I believe cause data loss..

I have a fix for that, but w/ how many releases are broken, we won't be
able to switch to the better _FLOPPY (block 0) for this for a while..

r289225 (by sbruno):

makefs(8) leaves sblock.fs_providersize uninitialized (zero) that can be easily
checked with dumpfs(8). This may lead to other problems, f.e. geom_label kernel
module sanity checks do not like zero fs_old_size value and skips such UFS1
file system while tasting (fs_old_size derives from sblock.fs_providersize).

PR: 203704
Submitted by: eugen@grosbein.net
Reviewed by: marcel

git-svn-id: svn://svn.freebsd.org/base/stable/9@290600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/makefs/ffs/mkfs.c