History log of /dflybsd-src/sys/vfs/devfs/devfs_vfsops.c (Results 1 – 18 of 18)
Revision Date Author Comments
# 00369c4a 14-Feb-2020 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Rejigger mount code to add vfs_flags in struct vfsops

* Rejigger the mount code so we can add a vfs_flags field to vfsops,
which mount_init() has visibility to.

* Allows nullfs to flag t

kernel - Rejigger mount code to add vfs_flags in struct vfsops

* Rejigger the mount code so we can add a vfs_flags field to vfsops,
which mount_init() has visibility to.

* Allows nullfs to flag that its mounts do not need a syncer thread.
Previously nullfs would destroy the syncer thread after the
fact.

* Improves dsynth performance (it does lots of nullfs mounts).

show more ...


# dae65060 20-Oct-2019 zrj <rimvydas.jasinskas@gmail.com>

<sys/sysref.h>: Switch to lighter <sys/_malloc.h> header.

* Make <sys/sysref2.h> a kernel only header.
* Remove sys/types.h includes that follow <sys/param.h> in devfs(5).
* Add sys/malloc.h incl

<sys/sysref.h>: Switch to lighter <sys/_malloc.h> header.

* Make <sys/sysref2.h> a kernel only header.
* Remove sys/types.h includes that follow <sys/param.h> in devfs(5).
* Add sys/malloc.h includes where it is actually used in sources.

While there, minor whitespace cleanup.

show more ...


# 51a529db 19-Mar-2018 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Implement QUICKHALT shortcut for unmounting during shutdown

* Add the MNTK_QUICKHALT flag which allows the system to just unlink but
otherwise ignore certain mount types during a halt or

kernel - Implement QUICKHALT shortcut for unmounting during shutdown

* Add the MNTK_QUICKHALT flag which allows the system to just unlink but
otherwise ignore certain mount types during a halt or reboot. For now
we flag tmpfs, devfs, and procfs.

* The main impetus for this is to reduce the messing around we
do with devfs during a shutdown. Devfs has its fingers, and its
vnodes, prettymuch sunk throughout the system (e.g. /dev/null, system
console, vty's, root mount, and so on and so forth). There's no
real need to attempt to unwind all of that mess nicely.

show more ...


# 87f62b1c 08-Jan-2017 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Fix improper mplock in mount path

* VFS_MOUNT() was being called before MNTK_ALL_MPSAFE could be set by
the filesystem, causing the operation to run with the MP token held.

* Add VFCF_MP

kernel - Fix improper mplock in mount path

* VFS_MOUNT() was being called before MNTK_ALL_MPSAFE could be set by
the filesystem, causing the operation to run with the MP token held.

* Add VFCF_MPSAFE to the vfsconf flags and specify it for MPSAFE filesystems
in their VFS_SET() specification. This flag causes MNTK_ALL_MPSAFE to
be set in mount->mnt_kern_flags prior to the VFS_MOUNT() call. Set this
flag for devfs, procfs, tmpfs, nullfs, hammer, and hammer2.

* Primarily effects synth or other bulk-builds which do a lot of mounting.

show more ...


# ef560bee 24-May-2016 Tomohiro Kusumi <kusumi.tomohiro@gmail.com>

sys/kern: Don't implement .vfs_sync unless sync is supported

The only reason filesystems without requirement of syncing
(e.g. no backing storage) need to implement .vfs_sync is because
those fs need

sys/kern: Don't implement .vfs_sync unless sync is supported

The only reason filesystems without requirement of syncing
(e.g. no backing storage) need to implement .vfs_sync is because
those fs need a sync with a return value of 0 on unmount.

If unmount allows sync with return value of EOPNOTSUPP for fs
that do not support sync, those fs no longer have to implement
.vfs_sync with vfs_stdsync() only to pass dounmount().

The drawback is when there is a sync (other than vfs_stdnosync)
that returns EOPNOTSUPP for real errors. The existing fs in
DragonFly don't do this (and shouldn't either).

Also see https://bugs.dragonflybsd.org/issues/2912.

# grep "\.vfs_sync" sys/vfs sys/gnu/vfs -rI | grep vfs_stdsync
sys/vfs/udf/udf_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/portal/portal_vfsops.c: .vfs_sync = vfs_stdsync
sys/vfs/devfs/devfs_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/isofs/cd9660/cd9660_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/autofs/autofs_vfsops.c: .vfs_sync = vfs_stdsync, /* for unmount(2) */
sys/vfs/tmpfs/tmpfs_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/dirfs/dirfs_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/ntfs/ntfs_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/procfs/procfs_vfsops.c: .vfs_sync = vfs_stdsync
sys/vfs/hpfs/hpfs_vfsops.c: .vfs_sync = vfs_stdsync,
sys/vfs/nullfs/null_vfsops.c: .vfs_sync = vfs_stdsync,

show more ...


# 8e78a293 23-Aug-2012 Sascha Wildner <saw@online.de>

kernel/devfs: Rename devfs_nodetype members (conflicts with {,lin}procfs.h).


# 75779c3c 05-Mar-2012 Alex Hornung <ahornung@gmail.com>

vfsops - add two new ops, ncpgen_set, ncpgen_test

* ncpgen_set takes care of setting the namecache generation in an ncp,
while ncpgen_test can force zapping a resolved negative cache hit.

* Ma

vfsops - add two new ops, ncpgen_set, ncpgen_test

* ncpgen_set takes care of setting the namecache generation in an ncp,
while ncpgen_test can force zapping a resolved negative cache hit.

* Make use of the functions in devfs to keep the functionality we had
before.

* Also pass the calls through in nullfs - this should fix a problem
with posix_openpt when /dev is a nullfs mount of devfs.

Reported-by: Markus Pfeiffer (profmakx)

show more ...


# 81c25373 15-Oct-2010 Alex Hornung <ahornung@gmail.com>

devfs - Fix mountpoint specific rules

* Mount-point specific rules depend upon f_mntonname to be correct, so
populate this field of mnt_stat on mount().

Reported-by: Hugo


# 9f889dc4 25-Aug-2010 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Adjust device D_MPSAFE_* flags

* Replace all device D_MPSAFE_* flags with just D_MPSAFE
- Mark CAM's "da" and "cd" devices D_MPSAFE
- Mark dm (device mapper) D_MPSAFE
- Mark mem

kernel - Adjust device D_MPSAFE_* flags

* Replace all device D_MPSAFE_* flags with just D_MPSAFE
- Mark CAM's "da" and "cd" devices D_MPSAFE
- Mark dm (device mapper) D_MPSAFE
- Mark memio MPSAFE
- Mark the disk subsystem D_MPSAFE
- Mark the crypto device D_MPSAFE

* Devices marked D_MPSAFE now call their strategy functions without the
mp lock.

* Do a pass on devfs and mark it MNTK_ALL_MPSAFE. devfs was essentially
already MPSAFE but the D_MPSAFE checks have been moved out of devfs
and into the dev_d*() API wrappers.

show more ...


# aee6fa68 11-Sep-2009 Alex Hornung <ahornung@gmail.com>

devfs - populate statfs f_files properly

* Now we set statfs f_files to the total number of currently allocated
devfs_nodes.

Reported-by: Sascha Wildner


# 2c1e28dd 17-Aug-2009 Alex Hornung <ahornung@gmail.com>

DEVFS - move devfs headers to sys/sys; fix consumers

* Move devfs.h and devfs_rules.h from sys/vfs/devfs/ to sys/sys/

* Fix all consumers of the devfs headers to use the new path


# 9cf39e57 14-Aug-2009 Alex Hornung <ahornung@gmail.com>

DEVFS - sync up mount with userland; fix bugs

* Add support for the userland mount options in kernel and rely
on them to set the jailed property of the mount point.

* Fix comparison of mount poin

DEVFS - sync up mount with userland; fix bugs

* Add support for the userland mount options in kernel and rely
on them to set the jailed property of the mount point.

* Fix comparison of mount points by changing it to use strcmp instead
of relying on an always-0 length.

* Allow link rules to be created for links. (* possibly problematic? *)

show more ...


# bc185c5a 06-Aug-2009 Alex Hornung <ahornung@gmail.com>

DEVFS - Cleanup of devfs_core, devfs_rules and devfs_vfsops


# fa7e6f37 06-Aug-2009 Alex Hornung <ahornung@gmail.com>

DEVFS - add vfs ops fhtovp, vptofh and vget

* Add fhtovp and vptofh vfs ops in devfs_vfsops.c, which also fix
an issue with coredumps. The issue was that, whenever a core
dump should be generate

DEVFS - add vfs ops fhtovp, vptofh and vget

* Add fhtovp and vptofh vfs ops in devfs_vfsops.c, which also fix
an issue with coredumps. The issue was that, whenever a core
dump should be generated of an image with a /dev/* node open,
vptofh would return EOPNOTSUPP and hence the generated core
would be 0 bytes.

* Add helper function for fhtovp, devfs_inode_to_vnode and
family to devfs_core.c

* Also add vget vfs op, using the same mechanism as fhtovp.

Reported-By: Hasso Tepper

show more ...


# 89bf2026 04-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

DEVFS - Add required call to devfs_tracer_orphan_count() back in


# 0709f681 04-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

DEVFS - Remove debugging


# ca8d7677 04-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

DEVFS - Rollup

* Use a dynamically sized dirent structure for devfs_nodes, saving a lot
of memory.

* Fix m_* lexical space overloading issues.

* Fix issues with numerous uninitialized fields.

*

DEVFS - Rollup

* Use a dynamically sized dirent structure for devfs_nodes, saving a lot
of memory.

* Fix m_* lexical space overloading issues.

* Fix issues with numerous uninitialized fields.

* Completely initialize the devfs_node before making it visible to
userland.

* Properly invalidate negative entries in the namecache when adding new
devfs nodes. Also properly recycle disconnected vnodes.

* Properly disassociate a devfs node from its vnode when freeing the
devfs node.

* Clarify device reference counts and fix a bug or two.

* Get reprobes working. Sniff writes and automatically reprobe the
whole disk or a particular slice on close() if the MBR or label area
is modified.

* Fix memory leak when mounting/umounting devfs.

Submitted-by: Alex Hornung <ahornung@gmail.com>

show more ...


# 21864bc5 01-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

DEVFS - Bring Alex's GSOC DEVFS core into the main tree

This is a rollup commit bringing in Alex Hornung's GSOC DEVFS project
core in. This is the VFS portion of the project.

Author: Alex Hornung

DEVFS - Bring Alex's GSOC DEVFS core into the main tree

This is a rollup commit bringing in Alex Hornung's GSOC DEVFS project
core in. This is the VFS portion of the project.

Author: Alex Hornung <ahornung@gmail.com>
Submitted-by: Alex Hornung <ahornung@gmail.com>

show more ...