<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/fs/devfs/devfs.h, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2020-08-11T14:27:57Z</updated>
<entry>
<title>devfs: rework si_usecount to track opens</title>
<updated>2020-08-11T14:27:57Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-11T14:27:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3b44443626603f65bba2804f08a7dfa6e6675bb4'/>
<id>urn:sha1:3b44443626603f65bba2804f08a7dfa6e6675bb4</id>
<content type='text'>
This removes a lot of special casing from the VFS layer.

Reviewed by:	kib (previous version)
Tested by:	pho (previous version)
Differential Revision:	https://reviews.freebsd.org/D25612
</content>
</entry>
<entry>
<title>devfs: bool -&gt; int</title>
<updated>2020-08-10T11:46:39Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T11:46:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca423b858bf4800bb22963e8133b72499bb18d24'/>
<id>urn:sha1:ca423b858bf4800bb22963e8133b72499bb18d24</id>
<content type='text'>
Fixes buildworld after r364069
</content>
</entry>
<entry>
<title>devfs: save on spurious relocking for devfs_populate</title>
<updated>2020-08-10T10:36:43Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2020-08-10T10:36:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7b19bddac8f6ae5a356ffbca80f087d3654b8363'/>
<id>urn:sha1:7b19bddac8f6ae5a356ffbca80f087d3654b8363</id>
<content type='text'>
Tested by:	pho
</content>
</entry>
<entry>
<title>sys/fs: further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:15:37Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:15:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d63027b668c055c83bad6191a9986616380c86e4'/>
<id>urn:sha1:d63027b668c055c83bad6191a9986616380c86e4</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
</content>
</entry>
<entry>
<title>Introduce the "ruleset=number" option for devfs(5) mounts.</title>
<updated>2012-02-09T10:09:12Z</updated>
<author>
<name>Martin Matuska</name>
<email>mm@FreeBSD.org</email>
</author>
<published>2012-02-09T10:09:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=17d84d611f995d5d33602ff8aed1ae6d2a3ea92c'/>
<id>urn:sha1:17d84d611f995d5d33602ff8aed1ae6d2a3ea92c</id>
<content type='text'>
Add support for updating the devfs mount (currently only changing the
ruleset number is supported).
Check mnt_optnew with vfs_filteropt(9).

This new option sets the specified ruleset number as the active ruleset
of the new devfs mount and applies all its rules at mount time. If the
specified ruleset doesn't exist, a new empty ruleset is created.

MFC after:	1 month
</content>
</entry>
<entry>
<title>Format prototypes to follow style(9) more closely.</title>
<updated>2010-10-12T15:58:52Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-10-12T15:58:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=27877c99031f3d14427c7da72086bb156f9632a5'/>
<id>urn:sha1:27877c99031f3d14427c7da72086bb156f9632a5</id>
<content type='text'>
Discussed with:	kib, phk
</content>
</entry>
<entry>
<title>Add reference counting for devfs paths containing user created symbolic</title>
<updated>2010-09-27T17:47:09Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-09-27T17:47:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d318c565d74496343ec299b3ace0ae9eb744dba1'/>
<id>urn:sha1:d318c565d74496343ec299b3ace0ae9eb744dba1</id>
<content type='text'>
links. The reference counting is needed to be able to determine if a
specific devfs path exists. For true device file paths we can traverse
the cdevp_list but a separate directory list is needed for user created
symbolic links.

Add a new directory entry flag DE_USER to mark entries which should
unreference their parent directory on deletion.

A new function to traverse cdevp_list and the directory list will be
introduced in a separate commit.

Idea from:	kib
Reviewed by:	kib
</content>
</entry>
<entry>
<title>Modify devfs_fqpn() for future use in devfs path reference counting</title>
<updated>2010-09-21T16:49:02Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-09-21T16:49:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6adc52306ad41aacb0f80da53955e922601c7140'/>
<id>urn:sha1:6adc52306ad41aacb0f80da53955e922601c7140</id>
<content type='text'>
code:

- Accept devfs_mount and devfs_dirent as the arguments instead of a
  vnode. This generalizes the function so that it can be used from
  contexts where vnode references are not available.
- Accept NULL cnp argument. No '/' will be appended, if a NULL cnp is
  provided.
- Make the function global and add its prototype to devfs.h.

Reviewed by:	kib
</content>
</entry>
<entry>
<title>Remove empty devfs directories automatically.</title>
<updated>2010-09-15T14:23:55Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-09-15T14:23:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=89d10571dbd835a79c96ba9a6de5b8607c234295'/>
<id>urn:sha1:89d10571dbd835a79c96ba9a6de5b8607c234295</id>
<content type='text'>
devfs_delete() now recursively removes empty parent directories unless
the DEVFS_DEL_NORECURSE flag is specified. devfs_delete() can't be
called anymore with a parent directory vnode lock held because the
possible parent directory deletion needs to lock the vnode. Thus we
unlock the parent directory vnode in devfs_remove() before calling
devfs_delete().

Call devfs_populate_vp() from devfs_symlink() and devfs_vptocnp() as now
directories can get removed.

Add a check for DE_DOOMED flag to devfs_populate_vp() because
devfs_delete() drops dm_lock before the VI_DOOMED vnode flag gets set.
This ensures that devfs_populate_vp() returns an error for directories
which are in progress of deletion.

Reviewed by:	kib
Discussed on:	freebsd-current (mostly silence)
</content>
</entry>
<entry>
<title>Allow user created symbolic links to cover device files and directories</title>
<updated>2010-08-12T15:29:07Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-08-12T15:29:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=64040d3978f50ee74cf1ef61e4ecdc6ab12d824a'/>
<id>urn:sha1:64040d3978f50ee74cf1ef61e4ecdc6ab12d824a</id>
<content type='text'>
if the device file appears during or after the link creation.

User created symbolic links are now inserted at the head of the
directory entry list after the "." and ".." entries. A new directory
entry flag DE_COVERED indicates that an entry is covered by a symbolic
link.

PR:		kern/114057
Reviewed by:	kib
Idea from:	kib
Discussed on:	freebsd-current (mostly silence)
</content>
</entry>
</feed>
