#
a314c606 |
| 22-Dec-2024 |
Jason A. Harmening <jah@FreeBSD.org> |
mount(8): Avoid truncation when fstab-formatting unionfs mount info
When displaying unionfs mounts in fstab format (`mount -p`), mount(8) currently uses strlcpy to remove the disposition prefix from
mount(8): Avoid truncation when fstab-formatting unionfs mount info
When displaying unionfs mounts in fstab format (`mount -p`), mount(8) currently uses strlcpy to remove the disposition prefix from the mount name returned by getmntinfo(3). But strlcpy, like strcpy before it, does not guarantee correct behavior if the source and destination buffers overlap.
Just offset the buffer and avoid the destructive copy in the first place.
PR: 283420 Reviewed by: imp (previous version), olce MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48177
show more ...
|
Revision tags: release/14.2.0 |
|
#
183e8aa7 |
| 12-Oct-2024 |
Yan-Hao Wang <yanhaowang@FreeBSD.org> |
mount(8): Complete libxo transition
Reviewed by: des MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D41390
|
Revision tags: release/13.4.0, release/14.1.0, release/13.3.0 |
|
#
0b8224d1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals.
Remove copyright strings ifdef'd out
We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require).
Sponsored by: Netflix
show more ...
|
#
51e16cb8 |
| 23-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl
sbin: Remove ancient SCCS tags.
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script.
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
906c312b |
| 15-Jan-2023 |
Kirk McKusick <mckusick@FreeBSD.org> |
Document the mntopts(3) functions.
The mntopts(3) functions support operations associated with a mount point. The main purpose of this commit is to document the mntopts(3) functions that now appear
Document the mntopts(3) functions.
The mntopts(3) functions support operations associated with a mount point. The main purpose of this commit is to document the mntopts(3) functions that now appear in 18 utilities in the base system. See mntopts(3) for the documentation details.
The getmntopts() function appeared in 4.4BSD. The build_iovec(), build_iovec_argf(), free_iovec(), checkpath(), and rmslashes() functions were added with nmount(8) in FreeBSD 5.0. The getmntpoint() and chkdoreload() functions are being added in this commit.
These functions should be in a library but for historic reasons are in a file in the sources for the mount(8) program. Thus, to access them the following lines need to be added to the Makefile of the program wanting to use them:
SRCS+= getmntopts.c MOUNT= ${SRCTOP}/sbin/mount CFLAGS+= -I${MOUNT} .PATH: ${MOUNT}
Once these changes have been MFC'ed to 13 they may be made into a library.
Reviewed by: kib, gbe MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37907
show more ...
|
Revision tags: release/12.4.0 |
|
#
a3f714c4 |
| 07-Nov-2022 |
Doug Rabson <dfr@FreeBSD.org> |
Add support for mounting single files in nullfs
My main use-case for this is to support mounting config files and secrets into OCI containers. My current workaround copies the files into the contain
Add support for mounting single files in nullfs
My main use-case for this is to support mounting config files and secrets into OCI containers. My current workaround copies the files into the container which is messy and risks secrets leaking into container images if the cleanup fails.
Reviewed by: mjg, kib Tested by: pho Differential Revision: https://reviews.freebsd.org/D37478
show more ...
|
#
ce00b119 |
| 14-Jun-2022 |
Doug Ambrisko <ambrisko@FreeBSD.org> |
mount: revert the active vnode reporting feature
Revert the computing of active vnode reporting since statfs is used by a lot of tools. Only report the vnodes used.
Reported by: mjg
|
#
6468cd8e |
| 13-Jun-2022 |
Doug Ambrisko <ambrisko@FreeBSD.org> |
mount: add vnode usage per file system with mount -v
This avoids the need to drop into the ddb to figure out vnode usage per file system. It helps to see if they are or are not being freed. Sugges
mount: add vnode usage per file system with mount -v
This avoids the need to drop into the ddb to figure out vnode usage per file system. It helps to see if they are or are not being freed. Suggestion to report active vnode count was from kib@
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D35436
show more ...
|
Revision tags: release/13.1.0 |
|
#
a3214fbe |
| 11-Mar-2022 |
Mateusz Guzik <mjg@FreeBSD.org> |
mount: use pidfile_signal
This fixes a performance problem where poudriere -j 104 keeps remounting filesystems, which induce wanting to signal mountd, if running. The current code tries to do it by
mount: use pidfile_signal
This fixes a performance problem where poudriere -j 104 keeps remounting filesystems, which induce wanting to signal mountd, if running. The current code tries to do it by creating the pidfile in /var/run and unlinking it if the operation succeeds, inducing contention against anything doing an exec as it tries to look up /var/run/ld-elf.so.hints
Differential Revision: https://reviews.freebsd.org/D34681
show more ...
|
#
c09770b2 |
| 07-Feb-2022 |
Gordon Bergling <gbe@FreeBSD.org> |
mount(8): Fix a typo in source code comments
- s/filesytem/filesystem/
MFC after: 3 days
|
Revision tags: release/12.3.0 |
|
#
260f26f0 |
| 26-Sep-2021 |
Piotr Pawel Stefaniak <pstef@FreeBSD.org> |
mount: make libxo support more locale-aware
"special", "node", and "mounter" are not guaranteed to be encoded with UTF-8. Use the appropriate modifier.
Reported by: eugen@
|
#
9d324b5f |
| 25-Sep-2021 |
John Baldwin <jhb@FreeBSD.org> |
mount: Don't pass a NULL format string to xo_err().
This fixes a -Wformat error from GCC 9.
Fixes: e725ee7eb672 mount: add libxo(3) support
|
#
e725ee7e |
| 23-Sep-2021 |
Cameron Katri <me@cameronkatri.com> |
mount: add libxo(3) support
Adds --libxo to mount(8).
Differential Revision: https://reviews.freebsd.org/D30341
|
Revision tags: release/13.0.0, release/12.2.0 |
|
#
e2515283 |
| 27-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
08b242ae |
| 19-Aug-2020 |
Warner Losh <imp@FreeBSD.org> |
Move the mount name to bit mapping into sys/mount.h so it can be shared with the kernel.
Discussed with: kib@ Reviewed by: kirk@ (prior version) Sponsored by: Netflix Diffential Revision: https://re
Move the mount name to bit mapping into sys/mount.h so it can be shared with the kernel.
Discussed with: kib@ Reviewed by: kirk@ (prior version) Sponsored by: Netflix Diffential Revision: https://reviews.freebsd.org/D25969
show more ...
|
#
440cec3f |
| 12-Aug-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
e53daa1d |
| 07-Aug-2020 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r363989 through r364034.
|
#
57d4cc2c |
| 07-Aug-2020 |
Warner Losh <imp@FreeBSD.org> |
All the other printf() calls cast to (void) here, do the two newer ones for consistency.
|
Revision tags: release/11.4.0, release/12.1.0 |
|
#
668ee101 |
| 26-Sep-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r352587 through r352763.
|
#
ba7a55d9 |
| 23-Sep-2019 |
Sean Eric Fagan <sef@FreeBSD.org> |
Add two options to allow mount to avoid covering up existing mount points. The two options are
* nocover/cover: Prevent/allow mounting over an existing root mountpoint. E.g., "mount -t ufs -o nocov
Add two options to allow mount to avoid covering up existing mount points. The two options are
* nocover/cover: Prevent/allow mounting over an existing root mountpoint. E.g., "mount -t ufs -o nocover /dev/sd1a /usr/local" will fail if /usr/local is already a mountpoint. * emptydir/noemptydir: Prevent/allow mounting on a non-empty directory. E.g., "mount -t ufs -o emptydir /dev/sd1a /usr" will fail.
Neither of these options is intended to be a default, for historical and compatibility reasons.
Reviewed by: allanjude, kib Differential Revision: https://reviews.freebsd.org/D21458
show more ...
|
#
a63915c2 |
| 28-Jul-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @r350386
Sponsored by: The FreeBSD Foundation
|
#
634add3c |
| 22-Jul-2019 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Allow "update" option to be used in the fstab(5). Document possible use case.
Approved by: mckusick MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D18586
|
Revision tags: release/11.3.0 |
|
#
daba4da8 |
| 02-Jul-2019 |
Kirk McKusick <mckusick@FreeBSD.org> |
Add a new "untrusted" option to the mount command. Its purpose is to notify the kernel that the file system is untrusted and it should use more extensive checks on the file-system's metadata before u
Add a new "untrusted" option to the mount command. Its purpose is to notify the kernel that the file system is untrusted and it should use more extensive checks on the file-system's metadata before using it. This option is intended to be used when mounting file systems from untrusted media such as USB memory sticks or other externally-provided media.
It will initially be used by the UFS/FFS file system, but should likely be expanded to be used by other file systems that may appear on external media like msdosfs, exfat, and ext2fs.
Reviewed by: kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D20786
show more ...
|
#
7648bc9f |
| 13-May-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @347527
Sponsored by: The FreeBSD Foundation
|