Re: replace struct vattr with struct stat in fusebuf

2016-08-27 Thread Philip Guenther
Sigh, stupid control-enter keybinding in gmail What I meant to say was: BTW, this chunk in fusefs_setattr(): On Sat, Aug 27, 2016 at 8:50 PM, Philip Guenther wrote: > if (io->fi_flags & FUSE_FATTR_SIZE && vp->v_type == VDIR) { > error = EISDIR; > goto

Re: replace struct vattr with struct stat in fusebuf

2016-08-27 Thread Philip Guenther
if (io->fi_flags & FUSE_FATTR_SIZE && vp->v_type == VDIR) { error = EISDIR; goto out; }

Re: replace struct vattr with struct stat in fusebuf

2016-08-27 Thread Philip Guenther
On Sat, Aug 27, 2016 at 4:42 AM, Martin Natano wrote: > In struct fusebuf the attributes (used for getattr/setattr and to return > the ino/mode of a newly created file) are stored in a struct vattr. The > problem with this is, that using struct vattr in userspace is suboptimal > as some related he

replace struct vattr with struct stat in fusebuf

2016-08-27 Thread Martin Natano
In struct fusebuf the attributes (used for getattr/setattr and to return the ino/mode of a newly created file) are stored in a struct vattr. The problem with this is, that using struct vattr in userspace is suboptimal as some related helpers are not available, e.g. VATTR_NULL() and IFTOVT(). What