| Summary: | [ZFS] Invalid VOP_FSYNC options in vdev_file_io_start | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Alan Somers <asomers> |
| Component: | kern | Assignee: | Andriy Gapon <avg> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Many People | CC: | lwhsu |
| Priority: | --- | ||
| Version: | CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Alan Somers
2019-03-11 20:27:21 UTC
A commit references this bug: Author: avg Date: Fri Mar 22 09:11:46 UTC 2019 New revision: 345410 URL: https://svnweb.freebsd.org/changeset/base/345410 Log: ZFS vdev_file: use correct value for waitfor parameter of VOP_FSYNC PR: 236475 Reported by: asomers MFC after: 2 weeks Changes: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c After r345410, initialing ZFS triggers assertion failure: https://ci.freebsd.org/job/FreeBSD-head-amd64-test/10583/consoleFull panic: solaris assert: flag == FSYNC, file: /usr/src/sys/cddl/compat/opensolaris/sys/vnode.h, line: 238 Should this `ASSERT(flag == FSYNC);` also need to be changed? A commit references this bug: Author: avg Date: Fri Mar 22 17:44:47 UTC 2019 New revision: 345418 URL: https://svnweb.freebsd.org/changeset/base/345418 Log: Revert r345410, VOP_FSYNC change in ZFS vdev_file I overlooked the fact that that VOP_FSYNC() call is not a FreeBSD VFS call, but a macro that provides an illumos-compatible wrapper for the FreeBSD operation. PR: 236475 Reported by: lwhsu Pointyhat to: avg Changes: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c Sorry for the false alarm, then. |