Home
last modified time | relevance | path

Searched hist:dd81cc2bc5f25fb2c58bb59bf585deeeae196345 (Results 1 – 5 of 5) sorted by relevance

/freebsd/tests/sys/kern/
H A Dgetdirentries_test.cdd81cc2bc5f25fb2c58bb59bf585deeeae196345 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 DMakefilediff 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 Dgetdirentries.2diff 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 Dopendir2.cdiff 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 Dvfs_syscalls.cdiff 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