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

Bug#474698: partman-base: Inconsistent output if sector size != 512 bytes



Ferenc Wagner <wferi@niif.hu> writes:

> Otavio Salvador <otavio@debian.org> writes:
>
>> Ferenc Wagner <wferi@niif.hu> writes:
>>
>>>> Do you have any disk with sector size bigger then 512 bytes for
>>>> testing? ramdisk is not the best way of doing that.
>>>
>>> RAID1 of two ramdisks... :)  Jokes aside, fdisk says it has sector
>>> size 1024 and parted can open it (but not the constituent ramdisks).
>>>
>>>> I've made a test patch locally here but I can't test it.
>>>
>>> Unfortunately I don't have any such real hardware either, but why not
>>> test with the above trick?
>>
>> Because ramdisks cannot be opened with O_DIRECT and lastest parted
>> needs it. This has been done long time ago to avoid some sync problems
>> with disks.
>>
>> We could hack parted to allow it for testing but it's not a "real" test.
>
> I didn't express myself clearly.
>
> # mdadm -C /dev/md0 -l1 -n2 /dev/ram1 /dev/ram2
>
> Now /dev/md0 has sector size 1024 and can be opened by parted 1.8.8.
> Doesn't it make it suitable for testing?

Sure, this works. I'll then use d-i to test. I'll report back tomorrow.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio@debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



Reply to: