summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2007-05-01for the restore -r example:Jason McIntyre
- use /dev/sd rather than /dev/rp, since rp no longer exists - use rst0 instead of rst8, since rst8 does not exist (by default) from Matthias Scheler ok otto
2007-04-29fix rounding in the modify case; ok millert@ miod@Otto Moerbeek
2007-04-28Copy sendbug's editit().Ray Lai
OK deraadt@.
2007-04-27Remove unneeded #include's, as already done for disklabel. CPU_BIOSKenneth R Westerback
fallout.
2007-04-26lint says: fdisk.c:160: warning: operator '==' found where '=' was expectedTheo de Raadt
yet gcc happily ate it... see, lint is useful
2007-04-26includes that are not needed anymoreTheo de Raadt
2007-04-26Eliminate CPU_BIOS from userland and wd(4) by always using the BIOSKenneth R Westerback
geometry in the disklabel when there is a BIOS geometry to provide. This removes the option to set a disklabel to 'BIOS' geometry via the 'g b' command in the editor. Makes reported geometry more consistant and moves MD code to MD land where it should be. Doc help from jmc@, Feedback from millert@, marco@, weingart@, kettenis@. ok deraadt@
2007-04-26Copy sendbug's editit() to disklabel.Ray Lai
OK krw@.
2007-04-23remove -D stuff which is just silly, imagine if ls had a debug mode; ok marcoTheo de Raadt
2007-04-23Remove 'cg_space' from 'struct cg'. Due to the alignment on 64-bitPedro Martelletto
architectures, CGSIZE() was returning something sligthly over one block. The 'new' fsck would round this value up to a fragment boundary, and end up trying to access memory beyond allocated space. From mickey@, okay pedro@, millert@ and otto@.
2007-04-22Free allocated node in conf_set_now() before failing,Moritz Jodeit
so we do not leak memory. ok hshoexer@
2007-04-22Use conf_free_list() after calling conf_get_list().Moritz Jodeit
Otherwise we leak memory. ok ho@
2007-04-21use the correct size arg to memcmp when checking fs_cstotal.Otto Moerbeek
now jmc does not use 8TB in /tmp anymore. ok pedro@
2007-04-21"o" in optiopt_list is superfluous now tooHenning Brauer
2007-04-21fix -o handling. syntax is now -o none|basic|profile. -o without argumentHenning Brauer
is invalid now, it doesn't serve any purpose any more anyway since that is the default. ok mcbride
2007-04-20no whitespace allowed between -o and its argument, so update doc/usage()Jason McIntyre
to reflect this; whilst there i had to wrap -t in Xo/Xc to stop line split, and i zapped some extra whitespace in usage(); fixes user/5441 from sthen
2007-04-19teach dumpfs about the 'updated' flag; ok pedro@Otto Moerbeek
2007-04-18When trying to read the primary superblock, do not accidentially readOtto Moerbeek
a ffs1 alternate sb at the primary ffs2 sb location. Use the same test as the kernel does. ok millert@ pedro@
2007-04-18Remove the ``new i/o'' code. It has never worked well, noone has stepped upMiod Vallat
to fix it, and it goes in the way of good changes pedro is brewing. No functional change, tested todd@ millert@
2007-04-18don't let fpg and spc get out of sync. solves a few cases where newfsOtto Moerbeek
produces a bad cg when -c is used. ok pedro@ millert@
2007-04-18Do not exit when the TIOCSDTR ioctl() fails, but output a warning.Marc Balmer
This makes claudio's ublox aek-4t happy.
2007-04-17remove mention of -g and assocatiated options that aren't working nowTed Unangst
reminded by jmc
2007-04-17Fix merge error; fs_inodefmt was not being set for the ffs2 caseTodd C. Miller
2007-04-16There's no point in checking ptr for NULL before doing free(ptr)Moritz Jodeit
since free(NULL) is just fine. ok hshoexer@
2007-04-15Fix interop-issue with vpn peers that start reyking on port 4500 whenHans-Joerg Hoexer
NAT-T is used. Solves problems with cisco and openswan. Tested by todd@ (cisco interop), ok ho@ Original fix with Stefan Roth (stefan dot roth at siemens dot com), thanks!
2007-04-14documentation of -o option was missing both in man page and usage()Alexander von Gernler
ok jmc@
2007-04-14oops, sort options;Jason McIntyre
2007-04-14+.Xr fsck_vnd 8 ,Jason McIntyre
2007-04-14introduce {fsck,mount}_vnd tools to be able to describe vnd imagesAlexander von Gernler
in /etc/fstab instead of using some weird homegrown scripts. No support for boot time mounting yet, so "noauto" is still needed. original idea from david@ help and discussion todd@ bluhm@ beck@, manpage help jmc@ ok simon@ tedu@ bluhm@ todd@, "looks good" thib@
2007-04-13tweak the description of -O2; ok millertJason McIntyre
2007-04-13Missing bit in last commit, remove -z for getopt string.Todd C. Miller
2007-04-13cut the verbosity from usage() and instead print a synopsis,Jason McIntyre
as matched by the man page; ok millert
2007-04-13new sentence, new line;Jason McIntyre
-O takes an argument;
2007-04-13Add support for creating ffs2 filesystems. Note that the conceptTodd C. Miller
of a constant-sized track is obsolete in today's world of variable blocks per track disks so the cylinder group packing algorithm has been updated. Based on the ufs2 changes in FreeBSD by Kirk McKusick. From pedro@ with changes by me as well as a few from NetBSD. OK pedro@ beck@ thib@ and tested by more...
2007-04-10Add support for ffs2 filesystems. From pedro@ based on the ufs2Todd C. Miller
changes in FreeBSD by Kirk McKusick.
2007-04-10Add support for checking ffs2 filesystems. From pedro@ based onTodd C. Miller
the ufs2 changes in FreeBSD by Kirk Mckusick.
2007-04-10Rewrite ITITERATE macro to prevent out-of-bounds memory access.Moritz Jodeit
This makes dump -u work with malloc debugging enabled. ok millert@
2007-04-09Correctly handle option '-m', okay mickey@ grunk@Pedro Martelletto
2007-04-08Fix lint comments. s/Fall through/FALLTHROUGH/.Moritz Jodeit
ok hshoexer@
2007-04-08o Kill another strerror() from a call to log_error(),Moritz Jodeit
which already adds the errno string. o Avoid closing fd, if it's -1. o Don't replace illegal pathes with /dev/null in m_priv_local_sanitize_path(). All callers skip it anyways, in the failure case. ok hshoexer@
2007-04-07- use .Bk/.Ek to avoid SYNOPSIS splittingJason McIntyre
- put -p in the correct place - sync the -p argument name and tweak its description - add -p to usage()
2007-04-06Adds a pidfile argument to pflogd so that individualCan Erkin Acar
instances can be rotated via newsyslog. From Berk Demir < bdd at mindcast org > ok henning@
2007-04-06use rwlocks instead of hand-rolled. make the softc private parts private.Ted Unangst
this means making ccdconfig "SMALL" to turn off the kvm groveling nonsense ok deraadt millert pedro todd
2007-04-04Thinkpad -> ThinkPad; from Igor SobradoJason McIntyre
ok millert jasper mbalmer
2007-04-03Use strtonum(), not atoi(). OK deraadt, with help from otto@Todd C. Miller
2007-04-03Remove part of the -x description that I missed.Todd C. Miller
2007-04-03Remove obsolete options for superblock fields that are no longer used.Todd C. Miller
OK deraadt @, OK in principle tedu@
2007-04-03Minor cleanup: remove rcsids, remove #ifdef'd out code, COMPAT isTodd C. Miller
the default, quiet gcc. OK deraadt@
2007-04-02Modern disks do bad sector replacement themselves. There is noTodd C. Miller
need to reserve space for them in the filesystem itself. OK deraadt@ pedro@
2007-04-02Don't append the errno string in a log_error() call,Moritz Jodeit
since it will be automatically be appended. ok hshoexer@