<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/fs/ext2fs, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>ext2fs: Use __sdt_used for variables only used by SDT probes</title>
<updated>2026-02-09T16:27:44+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-02-09T16:27:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=83e5b79c7c98a7f8c94a99b102bc8a90c195769a'/>
<id>83e5b79c7c98a7f8c94a99b102bc8a90c195769a</id>
<content type='text'>
Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D55164
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	imp, markj
Differential Revision:	https://reviews.freebsd.org/D55164
</pre>
</div>
</content>
</entry>
<entry>
<title>vfs: retire the VREF macro</title>
<updated>2025-09-27T04:00:59+00:00</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2025-09-27T02:13:29+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7e4c451c12aeb26cc1179221b8230c491b17cf00'/>
<id>7e4c451c12aeb26cc1179221b8230c491b17cf00</id>
<content type='text'>
It is defined as a plain use of vref.

Churn generated with coccinelle:
@@
expression vp;
@@

- VREF(vp)
+ vref(vp)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is defined as a plain use of vref.

Churn generated with coccinelle:
@@
expression vp;
@@

- VREF(vp)
+ vref(vp)
</pre>
</div>
</content>
</entry>
<entry>
<title>vfs: retire the NULLVP macro</title>
<updated>2025-09-27T04:00:59+00:00</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2025-09-27T02:07:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=01c8e2e33df81b242d73a23de49a6b61f33c24c1'/>
<id>01c8e2e33df81b242d73a23de49a6b61f33c24c1</id>
<content type='text'>
The kernel was already mostly using plain NULL, just whack it and be
doen with the legacy.

Churn generated with coccinelle:
@@
@@

- NULLVP
+ NULL
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The kernel was already mostly using plain NULL, just whack it and be
doen with the legacy.

Churn generated with coccinelle:
@@
@@

- NULLVP
+ NULL
</pre>
</div>
</content>
</entry>
<entry>
<title>ext2fs: Set st_rdev to NODEV when not a device</title>
<updated>2025-08-17T17:29:27+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-17T17:08:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=df52ed9f7489879d678204ad5351ba635f7bdd2d'/>
<id>df52ed9f7489879d678204ad5351ba635f7bdd2d</id>
<content type='text'>
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51955
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51955
</pre>
</div>
</content>
</entry>
<entry>
<title>vfs: Introduce VN_ISDEV() macro</title>
<updated>2025-08-17T17:29:27+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2025-08-17T17:08:10+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=567e6250c003eeb251b4bc8dbe60d2adabab2988'/>
<id>567e6250c003eeb251b4bc8dbe60d2adabab2988</id>
<content type='text'>
We frequently need to check if a vnode refers to either a character or
block special, so we might as well have a macro for it.

We somewhat less frequently need to perform similar checks on things
that aren't vnodes (usually a struct vattr *), so add VATTR_ISDEV()
and a generic VTYPE_ISDEV() as well.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51947
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We frequently need to check if a vnode refers to either a character or
block special, so we might as well have a macro for it.

We somewhat less frequently need to perform similar checks on things
that aren't vnodes (usually a struct vattr *), so add VATTR_ISDEV()
and a generic VTYPE_ISDEV() as well.

Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D51947
</pre>
</div>
</content>
</entry>
<entry>
<title>ext2fs: 'struct ufid': Re-order fields and unpack</title>
<updated>2024-12-13T14:04:50+00:00</updated>
<author>
<name>Olivier Certner</name>
<email>olce@FreeBSD.org</email>
</author>
<published>2024-12-06T16:37:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8ae6247aa966989412bd75fc7c26728690b9e944'/>
<id>8ae6247aa966989412bd75fc7c26728690b9e944</id>
<content type='text'>
Re-ordering the fields suppresses the trailing padding which was causing
the structure to overflow 'struct fid'.

While here, re-indent in a more visually pleasing way.

Reviewed by:    rmacklem, emaste, markj
Approved by:    markj (mentor)
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D47955
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Re-ordering the fields suppresses the trailing padding which was causing
the structure to overflow 'struct fid'.

While here, re-indent in a more visually pleasing way.

Reviewed by:    rmacklem, emaste, markj
Approved by:    markj (mentor)
MFC after:      5 days
Differential Revision:  https://reviews.freebsd.org/D47955
</pre>
</div>
</content>
</entry>
<entry>
<title>ext2fs: Fix the size of struct ufid and add a static assert</title>
<updated>2024-12-06T02:05:06+00:00</updated>
<author>
<name>Rick Macklem</name>
<email>rmacklem@FreeBSD.org</email>
</author>
<published>2024-12-06T02:05:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=bfc8e3308bee23d0f7836d57f32ed8d47da02627'/>
<id>bfc8e3308bee23d0f7836d57f32ed8d47da02627</id>
<content type='text'>
File system specific *fid structures are copied into the generic
struct fid defined in sys/mount.h.
As such, they cannot be larger than struct fid.

This patch packed the structure and checks via a __Static_assert().

Reviewed by:	markj
MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
File system specific *fid structures are copied into the generic
struct fid defined in sys/mount.h.
As such, they cannot be larger than struct fid.

This patch packed the structure and checks via a __Static_assert().

Reviewed by:	markj
MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>ext4_ext_tree_init: correct memset initialization</title>
<updated>2024-06-25T17:41:11+00:00</updated>
<author>
<name>Ryan Libby</name>
<email>rlibby@FreeBSD.org</email>
</author>
<published>2024-06-25T17:41:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f29bdea0477625cb3b9de2971e92b67e5bb71178'/>
<id>f29bdea0477625cb3b9de2971e92b67e5bb71178</id>
<content type='text'>
gcc -Wmemset-elt-size diagnosed this.  The code was only initializing
1/4 of the array.  However, it was actually harmless, as the only caller
had done an M_ZERO allocation anyway.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D45701
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
gcc -Wmemset-elt-size diagnosed this.  The code was only initializing
1/4 of the array.  However, it was actually harmless, as the only caller
had done an M_ZERO allocation anyway.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D45701
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop treating size 0 as unknown size in vnode_create_vobject().</title>
<updated>2024-05-23T06:08:14+00:00</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2024-05-19T01:08:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=56a8aca83ab5a93af05f4c8c3a358b71a8392af8'/>
<id>56a8aca83ab5a93af05f4c8c3a358b71a8392af8</id>
<content type='text'>
Whenever file is created, the vnode_create_vobject() function will
try to determine its size by calling vn_getsize_locked() as size 0
is ambigious: it means either the file size is 0 or the file size
is unknown.

Introduce special value for the size argument: VNODE_NO_SIZE.
Only when it is given, the vnode_create_vobject() will try to obtain
file's size on its own.

Introduce dedicated vnode_disk_create_vobject() for use by
g_vfs_open(), so we don't have to call vn_isdisk() in the common case
(for regular files).

Handle the case of mediasize==0 in g_vfs_open().

Reviewed by: alc, kib, markj, olce
Approved by: oshogbo (mentor), allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D45244
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Whenever file is created, the vnode_create_vobject() function will
try to determine its size by calling vn_getsize_locked() as size 0
is ambigious: it means either the file size is 0 or the file size
is unknown.

Introduce special value for the size argument: VNODE_NO_SIZE.
Only when it is given, the vnode_create_vobject() will try to obtain
file's size on its own.

Introduce dedicated vnode_disk_create_vobject() for use by
g_vfs_open(), so we don't have to call vn_isdisk() in the common case
(for regular files).

Handle the case of mediasize==0 in g_vfs_open().

Reviewed by: alc, kib, markj, olce
Approved by: oshogbo (mentor), allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D45244
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: Remove ancient SCCS tags.</title>
<updated>2023-11-27T05:23:30+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-11-23T17:21:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=29363fb446372cb3f10bc98664e9767c53fbb457'/>
<id>29363fb446372cb3f10bc98664e9767c53fbb457</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
