[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reserved first sector for UFS
From: |
Vladimir 'φ-coder/phcoder' Serbinenko |
Subject: |
Re: Reserved first sector for UFS |
Date: |
Fri, 07 Jan 2011 11:57:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 |
On 01/07/2011 11:48 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 01/07/2011 11:30 AM, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
>
>> On 01/07/2011 10:35 AM, Grégoire Sutre wrote:
>>
>>
>>> Isn't the first sector reserved for the boot block in UFS?
>>>
>>>
>>>
>> Depends on OS:
>>
>> /* The blocks on which the superblock can be found. */
>> static int sblocklist[] = { 128, 16, 0, 512, -1 };
>>
>>
>>
>>
> AFAIU:
> if (superblock isn't on sector 0) and (inoblk_offs isn't 0 or inode zero
> isn't used) then first sector is reserved
>
Inode 0 shouldn't be used but I see nothing in the on-disk format to
enforce that. Moreover some OSes may put their own information outside
of standard basic UFS in the sector 0. Writing to sector 0 of UFS needs
more investigation because by now there are a lot of UFS variants
>>> Grégoire
>>>
>>>
>>> _______________________________________________
>>> Grub-devel mailing list
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/grub-devel
>>>
>>>
>>>
>>
>>
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature