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

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

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?

Reply to: