From: Boaz Harrosh > On 11/06/2014 05:53 PM, Alan Stern wrote: > >> But just the simple case of read-capacity failure should we then? > > > > That's a separate question. As far as I know, the case you are > > describing has not come up. > > > > BTW: what we should do is when the partition parser at the block layer > see that the partition capacity as written in the partition-table is > bigger then the capacity reported for the device we can put a fat > message at dmesg with both sizes and user can decide. One possibility is to try to read the last sector of the actual partition. If it succeeds there are 2 possibilities: 1) The disk is as bit as the partition table indicates. 2) The high bit(s) of the sector number have been masked. (or the disk locks up) In many cases the latter can be verified by reading the other sector. But if the media is new/erased then all the sectors will be 0xff and you'd have to do a write to ensure there was no sector aliasing. David ��.n��������+%������w��{.n�����{������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f