Searched hist:dd81cc2bc5f25fb2c58bb59bf585deeeae196345 (Results 1 – 5 of 5) sorted by relevance
/freebsd/tests/sys/kern/ |
H A D | getdirentries_test.c | dd81cc2bc5f25fb2c58bb59bf585deeeae196345 Wed Jul 09 22:34:18 CEST 2025 Dag-Erling Smørgrav <des@FreeBSD.org> getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.
While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate.
MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
|
H A D | Makefile | diff dd81cc2bc5f25fb2c58bb59bf585deeeae196345 Wed Jul 09 22:34:18 CEST 2025 Dag-Erling Smørgrav <des@FreeBSD.org> getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.
While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate.
MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
|
/freebsd/lib/libsys/ |
H A D | getdirentries.2 | diff dd81cc2bc5f25fb2c58bb59bf585deeeae196345 Wed Jul 09 22:34:18 CEST 2025 Dag-Erling Smørgrav <des@FreeBSD.org> getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.
While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate.
MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
|
/freebsd/lib/libc/gen/ |
H A D | opendir2.c | diff dd81cc2bc5f25fb2c58bb59bf585deeeae196345 Wed Jul 09 22:34:18 CEST 2025 Dag-Erling Smørgrav <des@FreeBSD.org> getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.
While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate.
MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
|
/freebsd/sys/kern/ |
H A D | vfs_syscalls.c | diff dd81cc2bc5f25fb2c58bb59bf585deeeae196345 Wed Jul 09 22:34:18 CEST 2025 Dag-Erling Smørgrav <des@FreeBSD.org> getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.
While here, also check for VBAD and return EBADF in that case. This can happen if the underlying filesystem got forcibly unmounted after the directory was opened. Previously, this would also have returned EINVAL, which wasn't right but wasn't wrong either; however, ENOTDIR would not be appropriate.
MFC after: never Sponsored by: Klara, Inc. Reviewed by: kevans, kib Differential Revision: https://reviews.freebsd.org/D51209
|