Age | Commit message (Collapse) | Author |
|
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@
|
|
'wrong interface' specification. So display that error message only for
non-static leases. i.e. when reading /var/db/dhclient.leases.<if>.
|
|
a.k.a. DEV_BSIZE. So just use DEV_BSIZE.
Confirmed to still work on 4k-byte sector disks by David Vasek.
|
|
WEP keys rather then being silently dumb, so when using WEP:
1) If the key is a plausible size try to use it.
2) If they key would be a plausible size with '0x' in front of it, add that.
3) If the key is not a plausible size, emit a warning and do not try to use it.
ok sthen@
|
|
pointless cleanup if we're obviously going to die anyway
ok guenther@
|
|
for the call to bsearch()
problem report and ok krw@
|
|
set at that point, and is always set to 67 in send_packet().
|
|
statements in dhclient.conf.
Recorded and static leases should now be bound to interfaces when
appropriate.
.... Ken
|
|
ok tedu@
|
|
|
|
on 4096-byte sector disks. No-op on 512-byte sector disks.
Adhering to the bedrock idea that ffs will *never* use anything but
512-byte block disk addressing (a.k.a. daddr_t), and believing that
the 'fake' bread()/bwrite() functions should always be using 512-btye
block numbers like their kernel big brothers, nuke the computed
dev_bsize and use DEV_BSIZE for conversions to/from byte offsets.
Spotted and various fixes tested by David Vasek.
Still to fix: scanning for superblocks on 4K disks.
ok otto@
|
|
this fixes those by referencing the correct page, and cleans up the netintro/
inet entries;
all this on the advice (and ok) of guenther!
|
|
to update it on rekey (fixes use-after-free); ok mikeb@
|
|
might be freed (e.g. on ike sa rekey); ok mikeb@
|