[haiku-commits] Re: haiku: hrev48305 - src/add-ons/kernel/file_systems/bfs

  • From: Alexander von Gluck IV <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 15 Nov 2014 09:43:19 -0600

On , jessica.l.hamilton@xxxxxxxxx wrote:
hrev48305 adds 1 changeset to branch 'master'
old head: 9bce27d261d37fd986b9143f72a248fcdaabdd2d
new head: f9ac1e93fb1ba12163bff4128efb54d8e548e4a8
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=f9ac1e9+%5E9bce27d

----------------------------------------------------------------------------

f9ac1e9: bfs: erase first sector when initialising new partition

  * When writing the superblock, because it's at sector 1,
    sector 0 doesn't get erased. As a result, if an
    existing file system was present, identifying details
    in sector 0 could cause the partition identifying code
    to detect an old file system instead.

  Fixes #11136.

[ Jessica Hamilton <jessica.l.hamilton@xxxxxxxxx> ]

----------------------------------------------------------------------------


I agree with this change, but it looks as though this modification broke the bootability of the images (anyboot and raw tested)

Do we write the bootsector before the filesystem in the build process? How often does that SuperBlock write call get executed?

 -- Alex

Other related posts: