Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-01-16 | remove "unused variable" warning | Charles Longeau | |
ok krw@ | |||
2008-01-15 | s/fragements/fragments/ in usage(). | Stuart Henderson | |
'please fix' jmc | |||
2008-01-14 | clear up pidfile(-p) option form | Okan Demirmen | |
tweaked by jmc, ok henning | |||
2008-01-13 | remove unused functions | Charles Longeau | |
from tobias@ ok miod@ tobias@ | |||
2008-01-12 | Check for expert mode/FFS inside get_fsize() and get_bsize() and | Kenneth R Westerback | |
reduce meat of editor_add() && editor_modify() to single if statements checking for != 0 from all get_* functions. No functional change. | |||
2008-01-12 | has_overlap() now always tries to resolve overlaps because it is only | Kenneth R Westerback | |
called during -E initialization. Thus it no longer needs the 'resolve' parameter. | |||
2008-01-12 | Tweak get_offset() so it does it's own free chunks to check the | Kenneth R Westerback | |
new offset being in a free area. | |||
2008-01-12 | Change editor_countfree() to return the count rather than recording it | Kenneth R Westerback | |
in a semi-global. Call it whenever the count is needed rather than trying to make sure it is called anytime the value might change. Eliminates a bunch of now unnecessary *freep parameters and calls to editor_countfree(). | |||
2008-01-12 | Parameter 'new' to get_size() no longer used. | Kenneth R Westerback | |
2008-01-12 | Introduce the function max_partition_size() to calculate the max size | Kenneth R Westerback | |
a partition can be without causing overlap. Use it to eliminate the need to check overlap in get_size() and to make the (c)hange command message more meaningful, i.e. mention max size allowed not the amount of total free space. | |||
2008-01-12 | document the max size of FFS and FFS2 file systems plus some rewording; | Otto Moerbeek | |
with and ok jmc@ | |||
2008-01-11 | Remove one level of epicycles by not looping in get_size() or | Kenneth R Westerback | |
get_offset() when the user enters an invalid value. Just abort the partition operation and return to the main prompt. Prevents users getting trapped because they don't know about ^D. Requested by deraadt@. Tweak an error message to remove ambiguity about what 'between x and y' means. | |||
2008-01-11 | Don't allow (a)dd or (m)odify to create 0 length partitions. Don't | Kenneth R Westerback | |
allow editing the fsize/bsize FFS values for FS_UNUSED partitions. ok (for at least the first bit) miod@ weingart@ beck@ | |||
2008-01-11 | compute transfer rate using 64-bit arithmetic, ok sthen@ millert@ | Otto Moerbeek | |
2008-01-10 | Minor aligning of code and comments between editor_add() and | Kenneth R Westerback | |
editor_modify(). No functional change. | |||
2008-01-08 | Beef up the (r)ecalculate command in -E mode by having it display the | Kenneth R Westerback | |
details of the free space it calculates. Gives an easy way to see all the chunks of free sectors on the disk. ok beck@ | |||
2008-01-08 | Ensure that the initial free space chunk can't have a length <= 0. | Kenneth R Westerback | |
2008-01-08 | Do initial free space count *after* resolving overlapping partitions. | Kenneth R Westerback | |
This removes the last need for has_overlap() to touch the free space counter. So eliminate that parameter. | |||
2008-01-07 | Oops. Need to ensure we zero selected partition too. | Kenneth R Westerback | |
2008-01-07 | When increasing d_npartitions as a result of (a)dd'ing a partition in | Kenneth R Westerback | |
-E, zero intervening partitions as well as the specified partition so no partitions are inadvertantly activated. | |||
2008-01-07 | Shrink & simplify some more -E code. Remove some chances for user | Kenneth R Westerback | |
error. 1) Don't accept a partition offset in used space. 2) Make the default size the space available from the offset to the end of the free chunk the offset is in. 3) Make (m)odify ask the questions in the same order as the (a)dd command. i.e. filesystem type after offset/size. 4) Make it more obvious new partitions default into the largest chunk of free space. 5) Nuke another now pointless function - next_offset(). "Looks reasonable" millert@ | |||
2008-01-06 | Kill some now-dead code/variables. | Kenneth R Westerback | |
2008-01-06 | Move check for overlap inside get_size() as it was always called after | Kenneth R Westerback | |
get_size() anyway. Allows elimination of make_contiguous() since we no longer allow overlaps to develop. | |||
2008-01-06 | Calculate amount of free space by adding up space in free chunks, rather | Kenneth R Westerback | |
than hand rolling another partition walking loop. No functional change. | |||
2008-01-06 | There is no point in having cpg manipulated in -E. newfs does all the | Kenneth R Westerback | |
work anyway and ignores this value. So just set it to 1 and nuke get_cpg(), shrinking and simplifying. ok otto@ millert@ | |||
2008-01-05 | handle 64-bit blkno's in format string | Otto Moerbeek | |
2008-01-05 | Add support for the Meinberg Standard Time String format that all Meinberg | Marc Balmer | |
radio clocks can transmit over serial ports. This is implemented as a line discipline similar to nmea(4) and provides a timedelta sensor. See http://www.meinberg.de/english/specs/timestr.htm for details on the MSTS format. ldattach(8) is extended to support the "msts" line discipline and two stopbits (which some radio clocks, e.g. the C51 use). Do a "make includes" before your next system build. Initially from Maurice Janssen based on nmea(4). "go for it" deraadt | |||
2008-01-04 | Strip off trailing '/32' when address type is IPV4_ADDR as isakmpd does | Hans-Joerg Hoexer | |
not accept the trailing '/32'. Diff from Mitja Muzenic <mitja@muzenic.net>, thanks! | |||
2008-01-03 | Remove text which is incorrect now that 'get bios geometry' | Stuart Henderson | |
has been removed. ok krw | |||
2008-01-02 | remove unused functions | Charles Longeau | |
initially from tobias@, and I removed an unused struct too ok moritz@ tobias@ | |||
2008-01-01 | Oops. Missed a couple of unnecessary 'DL_GETPOFFSET()+DL_GETPSIZE() > | Kenneth R Westerback | |
ending_sector' tests and one superfluous editor_countfree(). Rectify a few comments. | |||
2008-01-01 | Fix display of overlapping partitions to account for larger size and offset | Kenneth R Westerback | |
fields. | |||
2008-01-01 | get_size() no longer allows DL_GETPSIZE()+DL_GETPOFFSET > | Kenneth R Westerback | |
ending_sector, so no need to check for this condition after calling get_size(). | |||
2008-01-01 | Shorten and simplify code, eliminate ability to assign arbitrary sizes | Kenneth R Westerback | |
to existing FS_BOOT and FS_UNUSED partitions via -E, tighten up error verbiage. Feedback from jsing@. ok millert@. | |||
2007-12-31 | Reset partition size as well as partition offset before asking for | Kenneth R Westerback | |
another, valid, set while adding a partition. Lost in r1.119 when we switched to DL_SETP* defines. | |||
2007-12-30 | Use get_size() in editor_change() instead of hand-rolling identical | Kenneth R Westerback | |
code. Makes the size prompt/helpstring/looping the same for (a)dd/(m)odify/(c)hange. | |||
2007-12-30 | Kill some now unneeded checks for 'c' partition manipulation. Change | Kenneth R Westerback | |
the variable 'c' to 'partno' in editor_delete() so all editor_* functions are even more consistant. No functional change. | |||
2007-12-30 | Simplify code by avoiding manual manipulations of the free space | Kenneth R Westerback | |
counter. Call edit_countfree() instead. Feedback from otto@. ok millert@ "Go for it" deraadt@ | |||
2007-12-30 | Since 'c' now always covers the entire disk and is always FS_UNUSED, | Kenneth R Westerback | |
there is no point in allowing the edit mode commands (a)add/(n)ame/(m)odify/(d)elete/(c)hange to pretend to fiddle with it. Some already checked for and avoided 'c', but do it in a consistant manner in all cases. ok millert@ otto@ marco@ | |||
2007-12-30 | do not repeat "usage:" twice | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | each usage requires its own line | Igor Sobrado | |
written with improvements by jmc@ ok jmc@ | |||
2007-12-30 | usage messages should have the form "usage: command [arguments]" | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | use the same argument name in synopsis and usage; lowercase "usage:" | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | add missing space between argument names and ellipsis | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | sort flags in both synopsis and usage, file not commited in last diff | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | sort flags in both synopsis and usage | Igor Sobrado | |
ok jmc@ | |||
2007-12-30 | Bring editor_add() code into line with the other editor_* functions. | Kenneth R Westerback | |
The only visible change is allowing only one chance to specify a valid partition letter before returning to the main edit prompt. "This looks OK to me" millert@ | |||
2007-12-28 | printf field widths are always int, so add a cast to remove | Charles Longeau | |
"warning: field width is not type int" "looks good" otto@ | |||
2007-12-25 | Some cosmetic code reorg to make things a bit more textually | Kenneth R Westerback | |
consistant. No functional change. | |||
2007-12-24 | Use zero_partitions() to implement the '-E' command 'd *', as it | Kenneth R Westerback | |
already is used to implement 'z'. Vocal support for both commands so keep both for now. 'sounds good' deraadt@. |