summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2016-01-16Nuke support for 1024- and 2048-byte sector devices. Error out ifKenneth R Westerback
anything other than 512-byte sectors are encountered. Unlink deblock_media.c from the build. ok jasper@
2016-01-16Interface status printing (at exit and USR1) was broken for a while.Can Erkin Acar
Remove it completely to simplify the code. even better deraadt@
2016-01-15As with compute_device_size(), gut compute_block_size() and simplyKenneth R Westerback
ask the disklabel as everyone else does. Add file name to compute_block_size() parameters to make error messages nicer.
2016-01-15We don't need yet another alias for DEV_BSIZE. Use DEV_BSIZE andKenneth R Westerback
nuke PBLOCK_SIZE and another unused #define.
2016-01-15Two more for the attic.Kenneth R Westerback
2016-01-15Replace bitfield_get() and bitfield_set() abstraction with simple maskingKenneth R Westerback
operations since all the uses but 1 are for 1 bit fields. No functional change intended. Unhook bitfield.c from build.
2016-01-14Kill unused variable 'lfile'.Kenneth R Westerback
2016-01-14detect multiple root queues on a single interface and give a nice errorHenning Brauer
message - beats "pfctl: DIOCXCOMMIT: Invalid argument". from Nathanael Rensen <nathanael at list.polymorpheus.com>, 10x! ok sthen phessler, commit reminder mikeb
2016-01-14Move more unused files to attic.Kenneth R Westerback
2016-01-14Don't include hfs_misc.h, which no longer contains anything of use.Kenneth R Westerback
2016-01-14Nuke 'HFS_name' field which was not referenced now other than settingKenneth R Westerback
it and freeing it. Unhook hfs_misc.c from build since it now longer contains anything being used.
2016-01-14Remove code supporting undocumented and inaccessible flags 'a'Kenneth R Westerback
(abbreviate partition type names), 'f' (print HFS partition names) and 'kLogicalOption' (obviously a getopt_long() conversion error).
2016-01-13Make 'ifconfig $if mode' a valid subcommand that works independently ofStefan Sperling
the 'media' subcommand. Allow clearing the mode with 'ifconfig $if -mode'. This makes commands such as 'ifconfig iwn0 mode 11a' work without having to type all of 'ifconfig iwn0 media autoselect mode 11a'. ok sthen@ deraadt@ jmc@
2016-01-13Remove obsolete flags (h, v, i, c) from getopt() call.Kenneth R Westerback
No need for 'flags' variable. Just call usage() on unknown options.
2016-01-13Nuke unused enum.Kenneth R Westerback
2016-01-12#define LOFF_T off_tKenneth R Westerback
#define llseek lseek #define LOFF_T_MAX LLONG_MAX I mean, really? Nuke'em and use off_t, lseek and LLONG_MAX. Also make a couple of checks for overflow of off_t value more likely to work. ok millert@
2016-01-12Another unused file for the attic.Kenneth R Westerback
2016-01-12The only thing in pdisk.h is an unused #define. So don't include it.Kenneth R Westerback
2016-01-12Move unused files to attic.Kenneth R Westerback
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@
2016-01-12Remove media interation types, structures and functions. They are not usedKenneth R Westerback
anywhere, as evidenced by everything still compiling after they are gone.
2016-01-12Retire '-i', a poorly documented interactive mode that tries toKenneth R Westerback
mimic the 20th century MacOS version of pdisk more closely than the usual interactive editor. One set of commands is enough for anyone. ok jasper@
2016-01-12Since we use the disklabel size info we are always in 'device sizeKenneth R Westerback
mode' and '-c' and the '-d' command to toggle cflag are pointless since cflag is never examined.
2016-01-11More '-v' leftovers (usage).Kenneth R Westerback
2016-01-11Remove some '-v' leftovers. Pointed out by jasper@.Kenneth R Westerback
2016-01-11Nuke now unused files.Kenneth R Westerback
ok deraadt@
2016-01-11open_pathname_as_media() simply called open_file_as_media() whichKenneth R Westerback
takes the same parameters and returns the same value. Nuke open_pathname_as_media() and call open_file_as_media() directly. Nothing else from pathname.[ch] is used so remove them from build in preparation for moving them to the attic. ok deraadt@
2016-01-11Nuke now unused files.Kenneth R Westerback
ok deraadt@ jasper@
2016-01-11Remove '-v' and related version handling. Use strncasecmp() insteadKenneth R Westerback
of handrolled local istrncmp(). No need to compile util.c anymore. ok deraadt@ jasper@
2016-01-11- remove some unused data structures/fieldsJasper Lievisse Adriaanse
- unifdef notdef ok krw@
2016-01-11plug a mem leakJasper Lievisse Adriaanse
ok krw@
2016-01-11typo fix; from julian hsiaoJason McIntyre
2016-01-11more whitespace was lurkingJasper Lievisse Adriaanse
2016-01-11trailing whitespaceJasper Lievisse Adriaanse
2016-01-11add rcs idsJasper Lievisse Adriaanse
2016-01-10Use the normal method for determining a disk size. i.e. use theKenneth R Westerback
device's default disklabel. Don't spew i/o's at the disk to find the largest address that works, displaying many a 'read failed' message along the way. Problem noted by Brian Conway on bugs@ and jasper@. ok jasper@
2016-01-09Revamp the display of GPT information, hiding less importantKenneth R Westerback
information under the '-v' flag. This brings the GPT display more into line with the MBR display and simplifies and hardens the parsing of the partition info in the install scripts. Original problem with install scripts parsing hand edited GPT information reported by Valere Monseur via bugs@. Man page fixes and tweaks from jmc@. Install script changes tested & ok rpe@.
2016-01-08Zap extraneous SYNOPSIS sections.Vadim Zhukov
The gettytab(5) and termcap(5) get FILES, others don't need anything. With input from & okay schwarze@
2016-01-08tweak; from julian hsiaoJason McIntyre
2016-01-07sync displayed interface flags to realityMike Belopuhov
2016-01-06correct format string. ok deraadt stspTed Unangst
2016-01-05remove long deprecated "set debug "none|urgent|misc|loud" levels inSebastian Benoit
pf.conf. Change this before upgrade or pf.conf won't load. florian@ henning@ phessler@ jung@
2016-01-03Remove obsolete and undocumented "-carpdev" option, from Fabian Raetz.Martin Pieuchot
ok benno@, claudio@
2016-01-01rmeove unused noprint variableJoerg Jung
from Fabian Raetz via tech@ ok krw
2015-12-30Remove use of sysexits.h. OK guenther@Todd C. Miller
2015-12-30Revert r1.59's over-enthusiatic MBR zero'ing in MBR_init(). It wasKenneth R Westerback
killing the macppc MSDOS partition created by '-i'. Should fix the macppc install problems reported by Brian Conway on bugs@. Date of breakage found by rpe@.
2015-12-27Use 'standard' gpt_chk_mbr() to check for protective MBR.Kenneth R Westerback
2015-12-24tweak auto-allocation description, with and ok jmc@Otto Moerbeek
2015-12-23Remove unnecessary SIGSYS/ENOSYS handling for getfh(2).Tim van der Molen
Encouragement from deraadt@
2015-12-23Add privilege separation and pledge().Tim van der Molen
A privileged (that is, unpledged) child is forked that makes the "unpledgable" getfh(2) and mount(2) calls. It also takes care of writing /var/db/mountdtab so that the parent does not have to pledge "cpath wpath". This, then, allows the parent to pledge "stdio rpath inet dns". Suggestions and OK deraadt@