Age | Commit message (Collapse) | Author |
|
BSD/OS compatibility.
ok deraadt@, miod@i, millert@
|
|
|
|
(unconditionally), so a link-local will be assigned if there isn't one
yet. ok krw benno todd sthen
|
|
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
|
|
superfluous clusters can lead to out of boundary access.
ok krw@
|
|
Move to 2 clause license, approved by Wolfgang Solfrank.
ok deraadt@, krw@
|
|
Inspired by Android's commit b6ee08aadb580341a4d80943741b80de16a88b5d,
but fixing the actually offending cluster, not a random one.
ok krw@
|
|
ok krw@
|
|
ok krw@
|
|
|
|
* Move all off_t variables that don't look like file sizes to int64_t.
* Switch blockswritten to int64_t, so it won't wrap at 2TB.
* Same for blocksthisvol (from deraadt@).
* Switch xferrate (from tedu@) and blocksperfile from long to uint64_t.
* Since blocksperfile can be set with -B, move numarg() from long
to long long and don't mark small integer constant arguments as long.
ok deraadt@, tedu@
|
|
ok deraadt@
|
|
Merged from Android (commit id 59ae828834dc177c74775cf36cafda4da9927bd9).
ok deraadt@
|
|
mask. Also remove redundant imsg_event_add calls. Fixes come from
usr.sbin/ospfd/control.c
ok reyk
|
|
them 'blocks' not 'sectors'.
|
|
|
|
|
|
required (from NetBSD).
ok beck@, krw@ and sthen@
|
|
|
|
Migrate your data to softraid before 5.7.
|
|
a filesystem. fs_nspf and its derivitives like fs_spc are DEV_BSIZE
values, not actual hardware disk sector values. Adjust initializations
accordingly.
Tweak header and man page comments to make the DEV_BSIZE'ness more
obvious for future spelunkers.
No-op for DEV_BSIZE (a.k.a. 512-byte) sector devices but should help
checking filesystems on, e.g., 4k-byte sector devices.
ok jmc@ on the man page tweaks.
|
|
actual disk sector size and not DEV_BSIZE. The sector size must be
obtained via the disklabel. Larger i/o's must be multiple sectors,
so when retrying with a smaller size shrink the attempt by one sector
and not DEV_BSIZE.
Of course if your d_secsize is DEV_BSIZE, this will all be a no-op.
This does not make non-512-byte sectors work, but puts in place the
logic to get and use the disklabel info. Which makes the next diffs
bite sized and focused.
ok guenther@
|
|
favour of DEV_BSIZE. No-op on 512-byte sector devices.
|
|
|
|
printing out block numbers and sector numbers. Make output verbiage
consistent. -Wall happier.
Original diff and ok chl@
|
|
newent.e2d_type to EXT2_FT_UNKNOWN, a.k.a. 0.
Spotted by -Wall.
|
|
when it is set, and the current setlogmask(LOG_UPTO(LOG_INFO)) when it
is not set.
|
|
more obscurity than clarity. Nuke DHCPD_LOG_FACILITY and just use
LOG_DAEMON in openlog() call.
|
|
use DEV_BSIZE.
Replace lseek+read with pread().
|
|
use DEV_BSIZE.
Write sizes need to be secsize and not DEV_BSIZE, just like reads.
Equivalent to changes made in fsck_ffs.
|
|
|
|
|
|
|
|
subsequent diffs.
|
|
|
|
gcc's built-in/in-lined memcpy() can't copy elements of a struct
dos_partiton array from inside the __packed struct dos_mbr into an
'unpacked' local variable. But copying the whole array works fine. Be
consistant and use the same idiom in both places the partition table
is parsed.
Leave the landisk workaround/hack in place until it can be confirmed
it is no longer needed.
ok martynas@ after many alternatives crashed and burned.
|
|
ok jca@ krw@
|
|
p[read|write]. Makes the code much clearer by eliminating extra error
checking and verbiage.
No intentional functional change.
Tweaks by and ok guenther@
|
|
|
|
been specified. Eliminates spurious "Couldn't write ''" log messages.
Spotted while looking into Roman Gorelov's logs on another problem.
|
|
make writing out the leases file go into an infinite loop until
/var is full.
Reported by Roman Gorelov via bugs@
Fix tested & ok stsp@ uwe@
|
|
is in a valid range.
OK henning@
|
|
calloc). We only reuse grp when there is an unresolvable host.
Fixes a bug where if a host in a netgroup is unresolvable then
entire netgroup is ignore. OK krw@
|
|
- memset() is not needed after a calloc()
- add missing DBG_ENTER;
- use SEEK_SET instead of 0 in an lseek() call
ok krw@
|
|
fsck_ffs stopped providing it.
|
|
|
|
DEV_BSIZE. David Vasek says it still works the same on 4K-byte-sector
device. i.e. prints one value incorrectly. For which a fix should
be following soon.
|
|
Grow the array of cached inodes exponentially instead of arithmetically.
Prefer sizeof(*pointer) over sizeof(type) in mallocs.
Don't leak memory in searchdir().
Fix multiple bugs in the handling of indirect blocks, including reuse of
a static buffer in a recursive function and failure to track the remaining
size of the directory blocks to process
Tested with a directory *doubly* indirect block!
ok krw@
|
|
sblock_try[] entries by DEV_BSIZE to get proper 512-byte-block address
for bread().
Confirmed to still work on 4k-byte sector devices by David Vasek.
|
|
that lack the appropriate address info.
Simply ignore the message as is done for short or incorrectly
versioned messages
ok claudio@
|