Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2019 20:21:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238197] [FUSEFS] fusefs supports neither chflags(2) not stat.st_birthtim
Message-ID:  <bug-238197-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238197

            Bug ID: 238197
           Summary: [FUSEFS] fusefs supports neither chflags(2) not
                    stat.st_birthtim
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

Created attachment 204675
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204675&action=
=3Dedit
Add st_birthtime support to FUSEFS backwards-incompatibly

The FUSE protocol does not support chflags(2) at all, and the FUSE_GETATTR =
and
FUSE_SETATTR messages have no fields for st_birthtime.  This is a direct re=
sult
of its Linux-only origins.  OSXFuse extended the protocol to add those feat=
ures
(and others), but they had to fork libfuse to do it.  FreeBSD has thus far =
had
a policy of no changes to libfuse.  Even if we were to abandon that policy,=
 we
can't add chflags and st_birthtime support without bumping the FUSE kernel =
API
version past the most recently published version in libfuse.  The reason is
because libfuse includes its own copy of the kernel API header.  Changing t=
he
FUSE protocol without reving the kernel API past what is already published =
by
libfuse would thus break existing binaries.

Attached is a patch that adds st_birthtime support to fusefs(5).  However, =
it
adds it at protocol version 7.9, so it breaks compatibility with existing
binaries.  The patch also includes some OSX definitions.  I thought that
including them would make it easier to update libfuse.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238197-227>