Re: cfdisk - possible error ?

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

 



On Mon, Aug 09, 2010 at 10:55:58AM +0200, J B wrote:
>  On 08/08/2010 11:39 PM, Davidlohr Bueso wrote:
> 
> >>   On Fri, 2010-08-06 at 17:42 +0200, J B wrote:
> >>
> >>                          sprintf(msg, "%s %d: %s", bad, i+1, errmsg);     /* fix */
> >
> >    I was able to reproduce the error on a disk I own, the mentioned fix
> >   just prints a higher value of i, but the error still occurs.
> 
> Thanks for testing it.
> The fix is to print a correct partition number.

 Yes. Fixed in upstream git repository. Thanks for your bug report.
 
> It is a valuable diagnostic message by itself, the only tool that gave

 Please, be careful with cfdisk, sfdisk and all partitioning tools
 that uses Cylinder-Head-Sector as basic unit or blindly check
 partitions against CHS rules (e.g. cylinder boundary). 
 
 The modern partitioning tools (fdisk or parted 2.x) don't have to
 follow the CHS stuff because it's unnecessary for sane operation
 systems and sometimes it's incompatible with 4K sector alignment
 (raids, new disks, ...).

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux