| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
kvm_open(3) will return NULL when it cannot access kernel virtual memory.
MFC after: 2 weeks.
|
|
|
|
| |
MFC after: 2 weeks.
|
|
|
|
|
|
|
|
|
|
|
| |
While here, adjust some whitespace and yeild some useful debug info.
This is untested on this hardware, testing requests to -scsi went
unanswered.
PR: 206585
Submitted by: cturt@hardenedbsd.org
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy.
Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks.
Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device.
The cache also implements limited read-ahead to increase performance.
To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache.
Booting from a virtual CD over IPMI:
0ms latency, before: 27 second, after: 7 seconds
60ms latency, before: over 12 minutes, after: under 5 minutes.
Submitted by: Toomas Soome <tsoome@me.com>
Reviewed by: delphij (previous version), emaste (previous version)
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D4713
|
|
|
|
|
|
| |
Use $MACHINE if target does not specify.
Reviewed by: bdrewery
|
|
|
|
|
|
|
|
| |
Otherwise the build command changes every build. META_MODE will
only remove it if something changes to warrant rebuilding
the file.
Sponsored by: EMC / Isilon Storage Division
|
| |
|
|
|
|
|
|
| |
According to style(9):
> normally, include <sys/types.h> OR <sys/param.h>, but not both.
(<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dirdeps.mk: move logic to handle -f dirdeps.mk to inside check
for first read of dirdeps.mk
Also fix handling of WITHOUT_DIRDEPS_BELOW
gendirdeps.mk: pass M2D_EXCLUDES to meta2deps
meta.autodep.mk: if we build with nofilemon, leave a cookie to
prevent updating dependencies until cleaned.
Reviewed by: bdrewery
|
|
|
|
|
|
|
|
|
| |
in the tx h/w ring buffer.
Reviewed by: gnn jeb.j.cramer@intel.com
MFC after: 1 week
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D5918
|
| |
|
|
|
|
|
|
|
|
|
| |
created to avoid creating ${.OBJDIR}.
The duplicate REVISION/BRANCH/VERSION evaluation will be addressed
separately.
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
| |
Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
|
| |
META_MODE may create cookies during staging of files to WORLDTMP that would
also prevent installation of the files to the final DESTDIR, since the cookie
already exists. This is not yet the case but will be soon. Prevent other
similar issues by disabling META_MODE for any top-level install targets.
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is limited to src-tree builds, meaning not extended to ports or other
out-of-tree builds.
This will help ensure that read-only OBJDIRS will be respected at install-time
by causing a more consistent failure for those who don't use a read-only
OBJDIR. It also will cause Jenkins to yell. This is a better solution than
trying to see CC=false as has been attempted and discussed before.
Of course this is only relevant for files generated by CC.
Disable this for META_MODE since it will detect the CFLAGS/command
change and force a rebuild.
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
|
|
|
|
| |
This reworks the handling of common headers to just include the needed
logic rather than invoke MAKE. This avoids the problem listed in r297842
and avoids other dependency tracking issues.
Pointyhat to: bdrewery
Reported by: Nikolai Lifanov <lifanov@mail.lifanov.com>
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
| |
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
| |
Obtained from: DragonflyBSD
|
|
|
|
| |
Obtained from: DragonflyBSD
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
sys/cam/scsi/scsi_all.h
sys/cam/scsi/scsi_all.c
Add the scsi_devid_is_port_naa helper function
Reviewed by: ken
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D5975
|
|
|
|
|
| |
It is faster and usually safer.
Use NULL instead of zero for the pointer.
|
| |
|
|
|
|
|
|
|
| |
strchr(3) will return NULL if the character does not appear in the
string.
MFC after: 2 weeks.
|
| |
|
| |
|
|
|
|
|
|
| |
gethostbyname(3) will return NULL in case of an error.
MFC after: 2 weeks.
|
|
|
|
|
|
|
| |
strchr(3) will return NULL if the character does not appear in the
string.
MFC after: 2 weeks.
|
|
|
|
|
|
|
| |
This produces a nicer path in debug info and build logs.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
|
| |
|
|
|
|
|
| |
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
- Remove spurious trailing whitespace in licensing header
- Remove unnecessary semi-colon after comment [*]
MFC after: 3 days
Submitted by: pfg [*]
Sponsored by: EMC / Isilon Storage Division
|
|
|
|
|
|
| |
malloc will return NULL if it cannot allocate memory.
MFC after: 2 weeks.
|
|
|
|
|
|
|
| |
string.
getfsent(3) will return NULL on EOF or error.
MFC after: 2 weeks.
|
|
|
|
|
|
|
| |
strchr(3) will return NULL if the character does not appear in the
string.
MFC after: 2 weeks.
|
|\
| |
| |
| |
| |
| |
| | |
Update file to 5.26.
MFC after: 2 weeks
Relnotes: yes
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix bug with long options and explicitly number them to avoid this in
the future.
fix bug with 5.23 long options
Obtained from: https://github.com/file/file
Reported by: jkim
|
| |
| |
| |
| |
| |
| | |
getservent(3) returns NULL on EOF or error.
MFC after: 2 weeks.
|
| |
| |
| |
| |
| |
| | |
fopen(3) will return NULL in case it cannot open the STREAM.
MFC after: 2 weeks.
|
| |
| |
| |
| | |
MFC after: 2 weeks.
|
| | |
|