Page MenuHomeFreeBSD

vfs: Put the definition of COPY_FILE_RANGE_CLONE in an appropriate place
ClosedPublic

Authored by rmacklem on Aug 9 2025, 1:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:33 PM
Unknown Object (File)
Fri, Oct 10, 4:33 PM
Unknown Object (File)
Fri, Oct 10, 4:33 PM
Unknown Object (File)
Fri, Oct 10, 10:55 AM
Unknown Object (File)
Thu, Oct 9, 1:22 AM
Unknown Object (File)
Thu, Oct 2, 4:25 PM
Unknown Object (File)
Wed, Oct 1, 8:56 PM
Unknown Object (File)
Tue, Sep 30, 11:28 PM
Subscribers

Details

Summary

kib@ noted that having COPY_FILE_RANGE_CLONE defined
in vnode.h was inappropriate, since it is meant to be used from
user space as well as kernel space.

This patch moves it into sys/unistd.h and reverts the addition
of it in vnode.h.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib added inline comments.
sys/sys/unistd.h
221

Why it matter which bits Linux uses?

This revision is now accepted and ready to land.Aug 9 2025, 2:25 AM
sys/sys/unistd.h
221

It doesn't matter a lot. I thought it might avoid
confusion and simplify the Linuxolator implementation
(it wouldn't have to map flags).