lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aV4g3dMyVcCzrI5Q@fedora.fritz.box>
Date: Wed, 7 Jan 2026 10:03:53 +0100
From: Horst Birthelmer <horst@...thelmer.de>
To: Joanne Koong <joannelkoong@...il.com>
Cc: Horst Birthelmer <hbirthelmer@...glemail.com>, 
	Miklos Szeredi <miklos@...redi.hu>, Bernd Schubert <bschubert@....com>, linux-kernel@...r.kernel.org, 
	linux-fsdevel@...r.kernel.org, Horst Birthelmer <hbirthelmer@....com>
Subject: Re: Re: [PATCH RFC v2 2/2] fuse: add an implementation of
 open+getattr

On Tue, Jan 06, 2026 at 05:46:09PM -0800, Joanne Koong wrote:
> On Tue, Dec 23, 2025 at 2:13 PM Horst Birthelmer
> <hbirthelmer@...glemail.com> wrote:
> >
> > +       open_args.opcode = opcode;
> > +       open_args.nodeid = nodeid;
> > +       open_args.in_numargs = 1;
> > +       open_args.in_args[0].size = sizeof(open_in);
> > +       open_args.in_args[0].value = &open_in;
> > +       open_args.out_numargs = 1;
> > +       open_args.out_args[0].size = sizeof(struct fuse_open_out);
> > +       open_args.out_args[0].value = outopenp;
> > +
> > +       err = fuse_compound_add(compound, &open_args);
> > +       if (err)
> > +               goto out;
> > +
> > +       /* Add GETATTR */
> > +       getattr_args.opcode = FUSE_GETATTR;
> > +       getattr_args.nodeid = nodeid;
> > +       getattr_args.in_numargs = 1;
> > +       getattr_args.in_args[0].size = sizeof(getattr_in);
> > +       getattr_args.in_args[0].value = &getattr_in;
> > +       getattr_args.out_numargs = 1;
> > +       getattr_args.out_args[0].size = sizeof(struct fuse_attr_out);
> > +       getattr_args.out_args[0].value = outattrp;
> 
> I think things end up looking cleaner here (and above for the open
> args) if the arg initialization logic gets abstracted into helper
> functions, as fuse_do_getattr() and fuse_send_open() have pretty much
> the exact same logic.
> 
> Thanks,
> Joanne
> 
You are completely right.
Will change that in the next version,

Thanks,
Horst

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ