On Sat, May 31, 2014 at 04:25:32PM +0200, Ruediger Meier wrote: > On Monday 26 May 2014, Petr Uzel wrote: > > Sfdisk prints out a warning about extended partition not > > starting at a cylinder boundary. Since this is irrelevant > > for linux, the -L option should suppress this warning. > > I would really like to have -L enabled by default on linux. Project name > is util-LINUX and if we even run it on linux, why being still bothered > per default? sfdisk code sucks and it's necessary to rewrite it to use libfdisk (sfdisk is the last remaining fdisk), I'd like to do this change in v2.26. > BTW we have some more warnings of this kind in libfdisk/src/dos.c > where we don't have option -L: > > /* Same physical / logical beginning? */ > if (cxt->geom.cylinders <= 1024 > && (pbc != lbc || pbh != lbh || pbs != lbs)) { > fdisk_warnx(cxt, _("Partition %zu: different physical/logical " > "beginnings (non-Linux?): " > "phys=(%d, %d, %d), logical=(%d, %d, %d)"), > partition + 1, > pbc, pbh, pbs, > lbc, lbh, lbs); > } this code is for DOS compatible mode which is disabled by default Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html