[Bug 192239] New: NOTE_TRUNCATE not supported

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 29 13:22:47 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192239

            Bug ID: 192239
           Summary: NOTE_TRUNCATE not supported
           Product: Base System
           Version: 10.0-RELEASE
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: ericshane at eradman.com

Created attachment 145120
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=145120&action=edit
a minimal program for printing VNODE events on BSD

On OpenBSD /usr/include/sys/event.h defines a filer for watching responding
file truncation:

#define·NOTE_TRUNCATE   0x0080       /* vnode was truncated */

On FreeBSD this is not defined, and does not appear to be covered by any other
filers

$ echo "test" > file.txt # NOTE_WRITE
$ : > file.txt           # NOTE_TRUNCATE

I'm filing this bug on behalf of the entr utility (http://entrproject.org)
since this leaves an edge case where a file is altered without triggering an
action.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list