]> git.ipfire.org Git - thirdparty/systemd.git/commit
fd-util: rename fds_are_same_mount() fds_inode_and_mount_same()
authorLennart Poettering <lennart@amutable.com>
Wed, 25 Feb 2026 12:06:32 +0000 (13:06 +0100)
committerLennart Poettering <lennart@amutable.com>
Tue, 3 Mar 2026 07:48:01 +0000 (08:48 +0100)
commit4023840ffa263d29132f7417dea674fff01f44af
tree03e915c71786699ef7a0d1d727d01d0a3a849708
parent0384875582fca36ced71eea1655b644fa00179e4
fd-util: rename fds_are_same_mount() fds_inode_and_mount_same()

The old name suggested this would only check if the two inodes are on
the same mount, but it actually checks if they are the same inodes too.

Let's rename it to make this clearer, in particular as we have
both statx_inode_same() and statx_mount_same() already, and they are
even used here, and hence very confusing.

This also drops two checks from the test case, which are simply wrong.
Given they apparently weren't load bearing (since no CI tripped up),
let's just drop them.
src/basic/fd-util.c
src/basic/fd-util.h
src/shared/switch-root.c
src/test/test-fd-util.c
src/test/test-fs-util.c