History log of /openbsd-src/sys/kern/vfs_init.c (Results 1 – 25 of 44)
Revision Date Author Comments
# f4c09545 20-May-2024 mvs <mvs@openbsd.org>

Drop MNT_LOCAL flag in corresponding `vfsconflist' fuse(4) entry instead
of cleaning it in fusefs_mount().

ok claudio


# af9e00b9 26-Dec-2019 bluhm <bluhm@openbsd.org>

Move extern declarations of vfsops variables into header file.
OK visa@


# 2861400e 02-Apr-2019 visa <visa@openbsd.org>

Restrict which filesystems are available for swap. This rules out
obvious misconfigurations that cannot work.

OK mpi@ tedu@


# 2a8e6c51 17-Sep-2018 visa <visa@openbsd.org>

Simplify VFS initialization.

Because loadable kernel modules are no longer, there is no need to
register or unregister filesystem implementations at runtime. Remove
vfs_register() and vfs_unregister

Simplify VFS initialization.

Because loadable kernel modules are no longer, there is no need to
register or unregister filesystem implementations at runtime. Remove
vfs_register() and vfs_unregister(), and make vfsinit() call vfs_init
routines directly. Replace the linked list of vfsconf structs with
the vfsconflist[] array.

OK mpi@ bluhm@

show more ...


# 6d4b78c6 16-Sep-2018 visa <visa@openbsd.org>

Move vfsconf lookup code into dedicated functions.

OK bluhm@


# 7efda1a1 11-Dec-2017 deraadt <deraadt@openbsd.org>

In uvm Chuck decided backing store would not be allocated proactively
for blocks re-fetchable from the filesystem. However at reboot time,
filesystems are unmounted, and since processes lack backing

In uvm Chuck decided backing store would not be allocated proactively
for blocks re-fetchable from the filesystem. However at reboot time,
filesystems are unmounted, and since processes lack backing store they
are killed. Since the scheduler is still running, in some cases init is
killed... which drops us to ddb [noted by bluhm]. Solution is to convert
filesystems to read-only [proposed by kettenis]. The tale follows:
sys_reboot() should pass proc * to MD boot() to vfs_shutdown() which
completes current IO with vfs_busy VB_WRITE|VB_WAIT, then calls VFS_MOUNT()
with MNT_UPDATE | MNT_RDONLY, soon teaching us that *fs_mount() calls a
copyin() late... so store the sizes in vfsconflist[] and move the copyin()
to sys_mount()... and notice nfs_mount copyin() is size-variant, so kill
legacy struct nfs_args3. Next we learn ffs_mount()'s MNT_UPDATE code is
sharp and rusty especially wrt softdep, so fix some bugs adn add
~MNT_SOFTDEP to the downgrade. Some vnodes need a little more help,
so tie them to &dead_vnops.

ffs_mount calling DIOCCACHESYNC is causing a bit of grief still but
this issue is seperate and will be dealt with in time.
couple hundred reboots by bluhm and myself, advice from guenther and
others at the hut

show more ...


# 1378bae2 15-Sep-2016 dlg <dlg@openbsd.org>

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the

all pools have their ipl set via pool_setipl, so fold it into pool_init.

the ioff argument to pool_init() is unused and has been for many
years, so this replaces it with an ipl argument. because the ipl
will be set on init we no longer need pool_setipl.

most of these changes have been done with coccinelle using the spatch
below. cocci sucks at formatting code though, so i fixed that by hand.

the manpage and subr_pool.c bits i did myself.

ok tedu@ jmatthew@

@ipl@
expression pp;
expression ipl;
expression s, a, o, f, m, p;
@@
-pool_init(pp, s, a, o, f, m, p);
-pool_setipl(pp, ipl);
+pool_init(pp, s, a, ipl, f, m, p);

show more ...


# e091d7e6 25-Aug-2016 dlg <dlg@openbsd.org>

pool_setipl

ok kettenis@


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# fbab5b6c 19-Dec-2014 tedu <tedu@openbsd.org>

start retiring the nointr allocator. specify PR_WAITOK as a flag as a
marker for which pools are not interrupt safe. ok dlg


# cf6677a6 08-Sep-2014 guenther <guenther@openbsd.org>

Delete procfs; it's always had races and is now unused: no one noticed for
months that I broke it before the 5.5 release.

confirmed as not being required by ports by sthen@, ajacoutot@, dcoppa@


# 73d1e6fe 24-Sep-2013 espie <espie@openbsd.org>

a bit more tmpfs scaffolding (still not active, no kernel change)
reduces the actual diff needed, and allows one to build mount_tmpfs
without reinstalling the includes.

(still awaiting review on the

a bit more tmpfs scaffolding (still not active, no kernel change)
reduces the actual diff needed, and allows one to build mount_tmpfs
without reinstalling the includes.

(still awaiting review on the uvm bits)

okay krw@, tedu@

show more ...


# 25175d86 03-Jun-2013 tedu <tedu@openbsd.org>

changes for isc fuse support. not enabled. ok beck deraadt.
from Sylvestre Gallon ccna.syl gmail.com


# 17f3788a 28-Mar-2013 tedu <tedu@openbsd.org>

no need for vnode.h to include namei.h unconditionally
ok deraadt guenther


# b55f20ad 23-Aug-2012 deraadt <deraadt@openbsd.org>

kill nnpfs dead


# ba8c5611 07-Apr-2011 thib <thib@openbsd.org>

merge vfs_conf.c and vfs_init.c and retire vfs_conf.c;

The contents belong togather a long with other crud,
that should get moved at some point.

ok deraadt@, miod@


# dc81e71a 21-Dec-2010 thib <thib@openbsd.org>

Bring back the "End the VOP experiment." diff, naddy's issues where
unrelated, and his alpha is much happier now.

OK deraadt@


# 074ac62c 10-Sep-2010 thib <thib@openbsd.org>

Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)
have been resolved.


# 57593ff0 06-Sep-2010 thib <thib@openbsd.org>

End the VOP experiment. Instead of the ridicolusly complicated operation
vector setup that has questionable features (that have, as far as I can
tell never been used in practice, atleast not in OpenB

End the VOP experiment. Instead of the ridicolusly complicated operation
vector setup that has questionable features (that have, as far as I can
tell never been used in practice, atleast not in OpenBSD), remove all
the gunk and favor a simple struct full of function pointers that get
set directly by each of the filesystems.

Removes gobs of ugly code and makes things simpler by a magnitude.

The only downside of this is that we loose the vnoperate feature so
the spec/fifo operations of the filesystems need to be kept in sync
with specfs and fifofs, this is no big deal as the API it self is pretty
static.

Many thanks to armani@ who pulled an earlier version of this diff to
current after c2k10 and Gabriel Kihlman on tech@ for testing.

Liked by many. "come on, find your balls" deraadt@.

show more ...


# a3c911ba 14-Jan-2010 schwarze <schwarze@openbsd.org>

fix typos in comments, no code changes;
from Brad Tilley <brad at 16systems dot com>;
ok oga@


# 39d82006 14-Jan-2009 fgsch <fgsch@openbsd.org>

correct test when checking the default operation entry.
from patrick keshishian <sidster at boxsoft dot com>


# 034fe094 16-May-2008 thib <thib@openbsd.org>

merge vfs_opv_init into vfs_op_init and remove the former,
as they where called consecutively in vfs_init.


# 9d59186b 16-May-2008 thib <thib@openbsd.org>

remove some old debug cruft, make some comments nicer
and shuffle declerations around.

OK blambert@


# e265d2c7 08-May-2008 thib <thib@openbsd.org>

retire vn_default_error() and replace all instances
with eopnotsupp() instead;

ok blambert@


# 28a8f404 07-Sep-2007 art <art@openbsd.org>

Use M_ZERO in a few more places to shave bytes from the kernel.

eyeballed and ok dlg@


12