-
-
-
usr/src/man/man2/open.2 (Diff revision 1) Should directio be added to SEE ALSO and should the section be capitalized: (3C)?
-
Would it be worth adding a unit test to the os-tests that verifies that some things like opening a UDS or other file systems like a named pipe, etc. will fail with O_DIRECT set?
-
-
-
usr/src/pkg/manifests/system-test-zfstest.mf (Diff revision 1) It's not clear why all of these ZFS related tests are part of a change that's adding a flag to open.
-
usr/src/uts/common/fs/vnode.c (Diff revision 1) It appears other systems ignore the failure here (FreeBSD at least from a quick glance). I guess following the Linux error makes the most sense? Did you consider how others swallow the error at all?
Change Summary:
Addressed CR feedback, including the removal of all of the ZoL O_DIRECT testing code and the addition of a new standalone test.
Diff: |
Revision 2 (+191 -12) |
---|
-
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revision 2) Is a
boolean
needed, or should this method just inspectf_basetype
to control its mode? Or alternatively should this method strictly assert the caller's intent?
-
-
usr/src/test/os-tests/tests/syscall/Makefile (Diff revision 2) If we're going to create a new subdir and system call logic, I'd suggest we make sure that this always builds both 32-bit and 64-bit binaries by default like I've done with others.
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revision 2) There are tests for O_DIRECTORY already, fwiw, so this isn't the only open(2) tests. May be worth calling that out or we should move what I already did in a follow up.
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revision 2) If you make a file, you should unlike a file. But you should consider making a name that's less likely to collide with something that already exists on the file system. It'd probably be safer to add O_EXCL to avoid that so it fails if it already exists.
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revision 2) Is it worth also doing something like binding a pipe or door?
-
Thank for the other bits here, Jerry. Just a few notes on the test program.
-
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revisions 2 - 3) Missing an unlink in the error case.
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revisions 2 - 3) Returning without unlinking the file.
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revisions 2 - 3) Missing cleanup of the temporary file in this error path.
-
-
usr/src/test/os-tests/tests/syscall/open.c (Diff revisions 3 - 4) I think if you exit zero like this, the test running will treat it as a passed test.
Description: |
|
---|
Change Summary:
After rebasing, the new bhyve code broke the build.