barebox large disk problem

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

 



Hi!

I'm trying to use ST2000DM006-2DM164 SATA 2000 GB hard disk with barebox.
This disk has 3907029168 sectors.

Alas barebox uses 32-bit signed integer to store disk sector count
(int num_blocks from struct block_device, see include/block.h for details)
and hereby the ST2000DM006 disk is too large for barebox.

I'm planning to increase block_device.num_block size from 32bit to 64bit.
But changing struct block_device may have some unobvious drawbacks
and I can't test all block_device usage situations (e.g. EFI).

Any suggestions?

-- 
Best regards,
  Antony Pavlov

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux