| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
check hash to the filesystem inodes. Access attempts to files
associated with an inode with an invalid check hash will fail with
EINVAL (Invalid argument). Access is reestablished after an fsck
is run to find and validate the inodes with invalid check-hashes.
This check avoids a class of filesystem panics related to corrupted
inodes. The hash is done using crc32c.
Note this check-hash is for the inode itself and not any of its
indirect blocks. Check-hash validation may be extended to also
cover indirect block pointers, but that will be a separate (and
more costly) feature.
Check hashes are added only to UFS2 and not to UFS1 as UFS1 is
primarily used in embedded systems with small memories and low-powered
processors which need as light-weight a filesystem as possible.
Reviewed by: kib
Tested by: Peter Holm
Sponsored by: Netflix
Notes:
svn path=/head/; revision=341836
|
|
|
|
|
|
|
|
|
|
|
| |
opcode will be printed. This should solve the problem, when protocol
name is not printed in `ipfw -N show`.
Reported by: Claudio Eichenberger <cei at yourshop.com>
MFC after: 1 week
Notes:
svn path=/head/; revision=341799
|
|
|
|
|
|
|
|
|
|
| |
When u_long is 8 bytes, it returns EINVAL and 'ipfw -N show' doesn't work.
Reported by: Claudio Eichenberger <cei at yourshop.com>
MFC after: 1 week
Notes:
svn path=/head/; revision=341798
|
|
|
|
|
|
|
|
| |
MFC after: 1 week
X-MFC-with: r341768
Notes:
svn path=/head/; revision=341795
|
|
|
|
|
|
|
|
|
| |
after unsigned long ultmp changed to long ltmp in r340245.
MFC after: 1 week
Notes:
svn path=/head/; revision=341768
|
|
|
|
| |
Notes:
svn path=/head/; revision=341664
|
|
|
|
| |
Notes:
svn path=/head/; revision=341663
|
|
|
|
| |
Notes:
svn path=/head/; revision=341662
|
|
|
|
|
|
|
|
|
|
| |
Other vendors base their additional smart info pages on what Intel did
plus some other bits. So it's convenient to have this be global.
Sponsored by: Netflix
Notes:
svn path=/head/; revision=341661
|
|
|
|
|
|
|
|
|
|
|
| |
This was never documented, and isn't needed, so it's best removed to
avoid confusion.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18460
Notes:
svn path=/head/; revision=341660
|
|
|
|
|
|
|
|
|
|
| |
Move the intel and wdc vendor specific stuff to their own modules.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18460
Notes:
svn path=/head/; revision=341659
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the pointers we pass into the commands const, also make the
linker set mirrors const.
Suggested by: cem@
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18459
Notes:
svn path=/head/; revision=341658
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Dynamically load all the .so files found in /libexec/nvmecontrol and
/usr/local/libexec/nvmecontrol.
o Link nvmecontrol -rdynamic so that its symbols are visible to the
libraries we load.
o Create concatinated linker sets that we dynamically expand.
o Add the linked-in top and logpage linker sets to the mirrors for them
and add those sets to the mirrors when we load a new .so.
o Add some macros to help hide the names of the linker sets.
o Update the man page.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18455
fold
Notes:
svn path=/head/; revision=341657
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
superblock has a check-hash error, an error message noting the
superblock check-hash failure is printed and the mount fails. The
administrator then runs fsck to repair the filesystem and when
successful, the filesystem can once again be mounted.
This approach fails if the filesystem in question is a root filesystem
from which you are trying to boot. Here, the loader fails when trying
to access the filesystem to get the kernel to boot. So it is necessary
to allow the loader to ignore the superblock check-hash error and make
a best effort to read the kernel. The filesystem may be suffiently
corrupted that the read attempt fails, but there is no harm in trying
since the loader makes no attempt to write to the filesystem.
Once the kernel is loaded and starts to run, it attempts to mount its
root filesystem. Once again, failure means that it breaks to its prompt
to ask where to get its root filesystem. Unless you have an alternate
root filesystem, you are stuck.
Since the root filesystem is initially mounted read-only, it is
safe to make an attempt to mount the root filesystem with the failed
superblock check-hash. Thus, when asked to mount a root filesystem
with a failed superblock check-hash, the kernel prints a warning
message that the root filesystem superblock check-hash needs repair,
but notes that it is ignoring the error and proceeding. It does
mark the filesystem as needing an fsck which prevents it from being
enabled for writing until fsck has been run on it. The net effect
is that the reboot fails to single user, but at least at that point
the administrator has the tools at hand to fix the problem.
Reported by: Rick Macklem (rmacklem@)
Discussed with: Warner Losh (imp@)
Sponsored by: Netflix
Notes:
svn path=/head/; revision=341608
|
|
|
|
|
|
|
|
|
|
| |
creating them and when correcting them when they are found to be corrupted.
Reported by: Don Lewis (truckman@)
Sponsored by: Netflix
Notes:
svn path=/head/; revision=341510
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This can be useful, when net.inet.ip.fw.dyn_keep_states is enabled, but
after rules reloading some state must be deleted. Added new flag '-D'
for such purpose.
Retire '-e' flag, since there can not be expired states in the meaning
that this flag historically had.
Also add "verbose" mode for listing of dynamic states, it can be enabled
with '-v' flag and adds additional information to states list. This can
be useful for debugging.
Obtained from: Yandex LLC
MFC after: 2 months
Sponsored by: Yandex LLC
Notes:
svn path=/head/; revision=341472
|
|
|
|
|
|
|
|
|
| |
admbugs: 590
Submitted by: Fabian Keil <fk@fabiankeil.de>
Obtained from: ElectroBSD
Notes:
svn path=/head/; revision=341470
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r337337 it changed to 0755.
Reviewed by: loos
Approved by: loos
MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
Differential Revision: https://reviews.freebsd.org/D18355
Notes:
svn path=/head/; revision=341464
|
|
|
|
|
|
|
| |
Sponsored by: Netflix
Notes:
svn path=/head/; revision=341416
|
|
|
|
|
|
|
|
|
|
|
|
| |
This was a typo for wdc. Eliminate it since it was in error. People
should use either 'wdc' or 'hgst' for the vendor from now on. 'hgst'
works for all versions this functionality is present for.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341415
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move the Intel specific log pages (including the one that samsung
implements) to intel.c. Add comment to the samsung vendor that it will
be going away soon.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341414
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Eliminage redundant spaces and nvmecontrol at start of all the usage
strings. Update the usage printing code to add them back when
presenting to the user. Allow multi-line usage messages and print
proper leading spaces for lines starting with a space.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341413
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide a usage() function that takes a struct nvme_function pointer
and produces a usage mssage. Eliminate all now-redundant usage
functions. Propigate the new argument through the program as needed.
Use common routine to print usage.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341412
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the dispatched function doesn't exit, then we get can get a
spurious function not found message. They all do exit, but this is a
little cleaner.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341411
|
|
|
|
|
|
|
|
|
|
|
| |
These are all hgst/wdc specific, so move them into the wdc.c to live
with the wdc command.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341410
|
|
|
|
|
|
|
|
|
|
|
|
| |
For the upcoming move of vendor specific code into vendor specific
files, make the common logpage routines global and move them to
nvmecontrol.h.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341409
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move logpage function def to header. Convert all the logpage_function
elements to elements of the linker set. Leave them all in logpage.c
for the moment.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341408
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
More commands will be added to nvmecontrol. Also, there will be a few
more vendor commands (some of which may need to remain private to
companies writing them). The first step on that journey is to move to
using linker sets to dispatch commands. The next step will be using
dlopen to bring in the .so's that have the command that might need
to remain private for seamless integration.
Similar changes to this will be needed for vendor specific log pages.
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D18403
Notes:
svn path=/head/; revision=341407
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=340979
|
|
|
|
|
|
|
|
|
|
|
| |
SELECTIVE MIRRORING
If your network has network traffic analyzer connected to your host
directly via dedicated interface or remotely via RSPAN vlan, you can
selectively mirror some ethernet layer2 frames to the analyzer.
...
Notes:
svn path=/head/; revision=340978
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in the process.
PR: 233526
Submitted by: tigersharke@gmail.com (original version)
Reviewed by: kevans
Approved by: kib (mentor, implicit)
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D18335
Notes:
svn path=/head/; revision=340974
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
report the check-hash failure and offer to search for and use
alternate superblocks. Prior to this fix fsck_ffs would simply
report the check-hash failure and exit.
Reported by: Julian H. Stacey <jhs@berklix.com>
Tested by: Peter Holm
Sponsored by: Netflix
Notes:
svn path=/head/; revision=340925
|
|
|
|
|
|
|
|
|
| |
PR: 230747
Submitted by: f.toscan@hotmail.it
MFC after: 1 week
Notes:
svn path=/head/; revision=340792
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Those two manual pages are already referencing each other in the HISTORY
sections, which people might skip. Mention those manual pages explicitly in
the SEE ALSO sections. Also, remove a reference to be(1) from libbe(3).
Reviewed by: bcr
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D18136
Notes:
svn path=/head/; revision=340723
|
|
|
|
|
|
|
|
|
|
| |
PR: 232786
Submitted by: Sergey Akhmatov <sergey@akhmatov.ru>
Reviewed by: AllanJude
MFC after: 1 week
Notes:
svn path=/head/; revision=340717
|
|
|
|
|
|
|
|
| |
Reported by: cem
MFC after: 1 week
Notes:
svn path=/head/; revision=340689
|
|
|
|
|
|
|
|
| |
CID: 1396919
MFC with: r340547
Notes:
svn path=/head/; revision=340686
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Observed in a CI test image, bectl_create test will run and be marked as
skipped because the module is not loaded. The first zpool invocation will
automagically load the module, but bectl_create is still skipped. Subsequent
tests all pass as expected because the module is now loaded and everything
is OK.
MFC after: 3 days
Notes:
svn path=/head/; revision=340636
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These tests operate on a file-backed zpool that gets created in the kyua
temp dir. root and ZFS support are both required for these tests. Current
tests cover create, destroy, export/import, jail, list (kind of), mount,
rename, and jail.
List tests should later be extended to cover formatting and the different
list flags, but for now only covers basic "are create/destroy actually
reflected properly"
MFC after: 3 days
Notes:
svn path=/head/; revision=340594
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an undocumented -r option preceding the bectl subcommand to specify a BE
root to operate out of. This will remain undocumented for now, as some
caveats apply:
- BEs cannot be activated in the pool that doesn't contain the rootfs
- bectl create cannot work out of the box without the -e option right now,
since it defaults to the rootfs and cross-pool cloning doesn't work like
that (IIRC)
Plumb the BE root through to libbe(3) so that some things -can- be done to
it, e.g.
bectl -r tank/ROOT create -e default upgrade
bectl -r tank/ROOT mount upgrade /mnt
this aides in some upgrade setups where rootfs is not necessarily ZFS, and
also makes it easier/possible to regression-test bectl when combined with a
file-backed zpool.
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18029
Notes:
svn path=/head/; revision=340592
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than using a special value to denote "use the default router",
treat the absence of the -g option to mean the same thing. The
in-kernel netdump client will always attempt to reach the server
directly before falling back to the configured gateway anyway. This
change makes it cleaner to support a hostname value for -g.
Reviewed by: cem
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D18025
Notes:
svn path=/head/; revision=340547
|
|
|
|
|
|
|
|
|
|
| |
Note that fuse was available from ports long before joining the base system.
Also, update the upstream URL.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=340525
|
|
|
|
|
|
|
| |
Pointy-hat to: mckusick
Notes:
svn path=/head/; revision=340422
|
|
|
|
| |
Notes:
svn path=/head/; revision=340416
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
document the libufs interface for fetching and storing inodes.
The undocumented getino / putino interface has been replaced
with a new getinode / putinode interface.
Convert the utilities that had been using the undocumented
interface to use the new documented interface.
No functional change (as for now the libufs library does not
do inode check-hashes).
Reviewed by: kib
Tested by: Peter Holm
Sponsored by: Netflix
Notes:
svn path=/head/; revision=340411
|
|
|
|
|
|
|
|
|
|
| |
that is still referred as last section of the SYNOPSIS later
but was erroneously situated in the section IN-KERNEL NAT.
MFC after: 1 month
Notes:
svn path=/head/; revision=340394
|
|
|
|
|
|
|
|
| |
Reported by: pjd
MFC after: 3 weeks
Notes:
svn path=/head/; revision=340363
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now an interface name can be specified for nptv6 instance instead of
ext_prefix. The module will track if_addr_ext events and when suitable
IPv6 address will be added to specified interface, it will be configured
as external prefix. When address disappears instance becomes unusable,
i.e. it doesn't match any packets.
Reviewed by: 0mp (manpages)
Tested by: Dries Michiels <driesm dot michiels gmail com>
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17765
Notes:
svn path=/head/; revision=340360
|
|
|
|
|
|
|
|
|
| |
pfctl_adjust_skip_ifaces() relies on this name.
MFC after: 2 weeks
Notes:
svn path=/head/; revision=340264
|
|
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=340249
|