| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
binary as the rest of it.
Add MD5 check that the md(4) device gets set up correctly.
|
|
|
|
| |
Approved by: joerg (mentor)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
full, since that line is almost always incomplete. Make the parsing
of <%d> lines more strict.
Also simplify the logic a little:
- Start off by making the buffer linear so that we don't have to
deal with it wrapping around (suggested by bde).
- Process line by line rather than byte at a time.
|
|
|
|
|
|
|
|
|
| |
has now has no effect except in combination with -p, and plain fsck
checks all file systems instead of skipping clean ones for msdosfs
only.
Renamed the force flag to skipclean and inverted its logic as in
fsck_ffs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
combined with the the signature check in a wrong way (basically
(dirty:= signature_recognised() && !clean) instead of
(mightbedirty:= !signature_recognized || !clean), so file systems
with unrecognized signatures were considered clean. Many of the
don't-care and reserved bits were not ignored, so some file systems
with valid signatures were unrecognized. One of my FAT32 file systems
has a signature of f8,ff,ff,ff,ff,ff,ff,f7 when dirty, but only
f8,ff,ff,0f,ff,ff,ff,07 was recognised as dirty for FAT32, so the
fail-unsafeness made my file system always considered clean.
Check the i/o non-error bit in checkdirty(). Its absence would give
an unrecognized signature in code that is unaware of it, but we now
mask it out of the signature so we have to check it explicitly. This
combines naturally with the check of the clean bit.
Reviewed by: rnordier (except for final details)
|
| |
|
|
|
|
|
|
| |
(theoretical).
Approved by: phk, scottl (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
| |
better. There is a related I/O error flag which we don't support in
the kernel but must support here. (Support for bits that we don't
understand here is mostly automatic by fail-safeness, but checkdirty()
has fail-unsafeness.) There are some reserved and don't-care bits
that weren't fully documented and aren't always masked properly. The
comment about the bits in readfat() will be removed when the masking
is fixed.
Submitted by: rnordier
|
|
|
|
|
| |
identical to a subset of readfat(), so it belongs near readfat() if not
in it.
|
|
|
|
|
|
|
|
| |
reorganize the printing of the interface name when using wildcard
cloning so it is not printed if it we either immediately rename or
destroy the interface.
Reviewed by: ru
|
|
|
|
| |
Sponsored by: Teleplan AS
|
| |
|
|
|
|
| |
Pointy hat to: pjd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in those cases:
1. File system was mounted by an unprivileged user.
2. File system was mounted by an unprivileged root user.
3. File system was mounted by a privileged non-root user.
Point 1 is when file system was mounted by unprivileged user
(sysctl vfs.usermount was equal to 1 then).
Point 2 is when file system was mounted by root, while sysctl
security.bsd.suser_enabled is set to 0 and sysctl vfs.usermount
is set to 1.
Point 3 is because we want to be ready for capabilities.
Reviewed by: rwatson
Approved by: scottl (mentor)
|
|
|
|
| |
Approved by: ru
|
|
|
|
|
|
|
| |
from the sdl because strlcpy requires that the source string be
NUL-terminated unlike strncpy.
Submitted by: Peter Jeremy <PeterJeremy at optushome dot com dot au>
|
|
|
|
| |
Technical Reviewed by: ru
|
| |
|
| |
|
|
|
|
| |
Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
|
|
|
|
|
|
|
| |
with -o
Submitted by: Ruslan Ermilov <ru@FreeBSD.org>
Pointed out by: Ceri Davies <ceri@submonkey.net
|
| |
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
| |
bsdlabel and sunlabel are what we use now.
|
| |
|
|
|
|
| |
Submitted by: Wiktor Niesiobedzki <freebsd-lists@w.evip.pl>
|
|
|
|
|
|
|
|
| |
name.
Prevent the kernel from potentially overflowing the interface name
variable. The size argument of strlcpy is complex because the name is
not null-terminated in sdl_data.
|
|
|
|
|
|
|
| |
so it isn't a safe way of handling [mc]alloc failures.)
PR: misc/61800
Approved by: rwatson (mentor)
|
|
|
|
| |
need to handle interfaces without phy specially.
|
|
|
|
|
|
| |
PR: bin/61846
Submitted by: Eugene Grosbein
MFC after: 1 week
|
|
|
|
|
|
| |
PR: bin/61472
Submitted by: Alex Popa <razor@ldc.ro>
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
| |
removing any existing contents.
PR: bin/61473
Submitted by: Alex Popa <razon@ldc.ro>
MFC after: 7 days
Approved by: rwatson (mentor)
|
|
|
|
|
|
|
|
|
| |
return for getopt() and comparing to -1, ditto with fgetc() and EOF,
and using the kg_nice value from <sys/user.h>
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Reviewed by: obrien, bde (a while back)
Tested lightly on: ppc, i386, make universe
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Unify the conditional assignments section so that architectural
exclusions come first, then options and !options, sorted by the
option name, also in directory order, then architecture specific
sections, sorted by the architecture name, with i386 being a
traditional exception.
Prodded by: bde
|
| |
|
|
|
|
|
| |
PR: bin/56328
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
| |
|
|
|
|
| |
Obtained from: KAME
|
| |
|
| |
|
|
|
|
|
|
| |
since there are already the same links for the program binary.
Suggested by: mat
|
|
|
|
|
|
| |
PR: docs/59937
Submitted by: Ada Lim <ada@bsd.org>
MFC After: 1 day
|
|
|
|
|
| |
PR: bin/59144
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
|
|
|
|
| |
Noticed by: rwatson
|