summaryrefslogtreecommitdiff
path: root/sbin/disklabel
AgeCommit message (Expand)Author
2008-01-11Remove one level of epicycles by not looping in get_size() orKenneth R Westerback
2008-01-11Don't allow (a)dd or (m)odify to create 0 length partitions. Don'tKenneth R Westerback
2008-01-10Minor aligning of code and comments between editor_add() andKenneth R Westerback
2008-01-08Beef up the (r)ecalculate command in -E mode by having it display theKenneth R Westerback
2008-01-08Ensure that the initial free space chunk can't have a length <= 0.Kenneth R Westerback
2008-01-08Do initial free space count *after* resolving overlapping partitions.Kenneth R Westerback
2008-01-07Oops. Need to ensure we zero selected partition too.Kenneth R Westerback
2008-01-07When increasing d_npartitions as a result of (a)dd'ing a partition inKenneth R Westerback
2008-01-07Shrink & simplify some more -E code. Remove some chances for userKenneth R Westerback
2008-01-06Kill some now-dead code/variables.Kenneth R Westerback
2008-01-06Move check for overlap inside get_size() as it was always called afterKenneth R Westerback
2008-01-06Calculate amount of free space by adding up space in free chunks, ratherKenneth R Westerback
2008-01-06There is no point in having cpg manipulated in -E. newfs does all theKenneth R Westerback
2008-01-03Remove text which is incorrect now that 'get bios geometry'Stuart Henderson
2008-01-01Oops. Missed a couple of unnecessary 'DL_GETPOFFSET()+DL_GETPSIZE() >Kenneth R Westerback
2008-01-01Fix display of overlapping partitions to account for larger size and offsetKenneth R Westerback
2008-01-01get_size() no longer allows DL_GETPSIZE()+DL_GETPOFFSET >Kenneth R Westerback
2008-01-01Shorten and simplify code, eliminate ability to assign arbitrary sizesKenneth R Westerback
2007-12-31Reset partition size as well as partition offset before asking forKenneth R Westerback
2007-12-30Use get_size() in editor_change() instead of hand-rolling identicalKenneth R Westerback
2007-12-30Kill some now unneeded checks for 'c' partition manipulation. ChangeKenneth R Westerback
2007-12-30Simplify code by avoiding manual manipulations of the free spaceKenneth R Westerback
2007-12-30Since 'c' now always covers the entire disk and is always FS_UNUSED,Kenneth R Westerback
2007-12-30Bring editor_add() code into line with the other editor_* functions.Kenneth R Westerback
2007-12-25Some cosmetic code reorg to make things a bit more textuallyKenneth R Westerback
2007-12-24Use zero_partitions() to implement the '-E' command 'd *', as itKenneth R Westerback
2007-12-23Setting p_fstype to the number of free sectors can't be right. Instead, setKenneth R Westerback
2007-12-16add missing arguments to "-b" and "-s"Igor Sobrado
2007-10-17- Be more careful about pre-existing SIGCHLD handlers (or SIG_IGN) byTheo de Raadt
2007-10-15specifying int instead of just unsigned is better styleTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-01cats went awayTheo de Raadt
2007-07-24rearrange newline printing code during editor startup; ok millert krwTheo de Raadt
2007-06-25some trivial delintingTheo de Raadt
2007-06-23expand size/offset to 16 characters, and drop the Cyl comments whichTheo de Raadt
2007-06-20if a 4.2BSD partition falls partly within the area defined by theOtto Moerbeek
2007-06-18If disklabel(8) is run against unreadable media (e.g. a blank cd)Kenneth R Westerback
2007-06-18-r will die. Until then, make sure any labels it dredges up areKenneth R Westerback
2007-06-18typoTheo de Raadt
2007-06-17On Sun machines, disklabels coming from the kernel will now have a d_flagsTheo de Raadt
2007-06-16OK, landisk needs NUMBOOT=1Theo de Raadt
2007-06-16i386/amd64/zaurus/landisk are not NUMBOOT=1 or NUMBOOT=2 architectures.Theo de Raadt
2007-06-08Simplify rounding to cylinders.Todd C. Miller
2007-06-08second pass, some fields slipped through the first time aroundOtto Moerbeek
2007-06-08Make disklabel(8) aware of the new fields, allowing for larger thanOtto Moerbeek
2007-06-08Fix setting total # sectors in the 'e' command.Todd C. Miller
2007-06-07Add missing parens, fixes a bug aded in rev 1.112 where maxval wouldTodd C. Miller
2007-06-07do not complain about c not being a multiple of lp->d_secpercyl; ok millertTheo de Raadt
2007-06-06fix the cylinder rounding calculation for "totally using the space" typeTheo de Raadt
2007-06-04avoid rounding down to zero cylinders. ok marco@Otto Moerbeek