git: 2bc115a6c287 - main - Revert "vfs: Assert that st_rdev is NODEV for non-devices"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 17 Aug 2025 23:55:38 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=2bc115a6c2874b157a8da973a3521889a1542fc0
commit 2bc115a6c2874b157a8da973a3521889a1542fc0
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-08-17 23:55:12 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-08-17 23:55:12 +0000
Revert "vfs: Assert that st_rdev is NODEV for non-devices"
This reverts commit f9ff1e48cc1b77f1840fd514050ccc5904a0cac2.
---
sys/kern/vfs_syscalls.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index aeb5657452dc..bf3ed9d515dc 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -2571,8 +2571,6 @@ kern_statat(struct thread *td, int flag, int fd, const char *path,
}
error = VOP_STAT(nd.ni_vp, sbp, td->td_ucred, NOCRED);
NDFREE_PNBUF(&nd);
- KASSERT(error != 0 || VN_ISDEV(nd.ni_vp) || sbp->st_rdev == NODEV,
- ("st_rdev should be NODEV unless the file is a device node"));
vput(nd.ni_vp);
#ifdef __STAT_TIME_T_EXT
sbp->st_atim_ext = 0;