Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Mounting ext2fs instead of ffs after 5.99.60 (SOLVED)

apb@ wrote:

> On Sun, 05 Feb 2012, Izumi Tsutsui wrote:
> >+            /* Also zap possible Ext2fs magic leftover. */
> >+            zap_old_sblock(1024);   /* XXX: SBOFF in ext2fs.h */
> Instead of keeping an ever-growing list of locations where other
> file systems keep their magic numbers, it might be better to just
> zero the first and last N megabytes of the {disk, partition, image}.

There is a comment in zap_old_sblock():

>>      /* The sector might contain boot code, so we must validate it */

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index