From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: Miklos Szeredi <miklos@szeredi.hu>, Bernd Schubert <bschubert@ddn.com>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"josef@toxicpanda.com" <josef@toxicpanda.com>,
"joannelkoong@gmail.com" <joannelkoong@gmail.com>
Subject: Re: [PATCH v3] fuse: Allow page aligned writes
Date: Thu, 29 Aug 2024 16:02:52 +0200 [thread overview]
Message-ID: <a38eee36-0ce8-4afe-bf2a-99a6fb990ee3@fastmail.fm> (raw)
In-Reply-To: <CAJfpeguuPQ-8RfwY1DQWgtz7poLrRtNrL4CrM8zYH5FLY40Orw@mail.gmail.com>
On 8/29/24 15:45, Miklos Szeredi wrote:
> On Thu, 29 Aug 2024 at 15:07, Bernd Schubert <bschubert@ddn.com> wrote:
>
>> Sorry forgot, additionally we (at DDN) will probably also need aligned
>> setxattr.
>
> Hmm, that's trickier.
>
> I'm thinking that with the uring interface it would be possible to
> e.g. give a separate buffer for the header and the payload. But
> that's just handwaving, would need to flesh out the details.
New fuse-uring rfc should go out today, but I plan to do another change
after that to get the buffer layout closer (or hopefully exactly)
to the existing buffer layout to avoid differences.
Current uring has fuse_in_header/fuse_out_header separated from the
request, but then there is still the per request header.
We could change it, also for non-uring, but it would be a rather
big change. At least for userspace. My personal preference would
be something like
#define IN_OUT_HEADER_SZ 128
#define REQ_HEADER_SZ 256
struct fuse_header
{
union {
struct fuse_in_header in;
struct fuse_out_header out;
uint8_t in_out_header[IN_OUT_HEADER_SZ];
};
union {
struct fuse_init_in init_in;
struct fuse_init_out init_out;
struct cuse_init_in cuse_in;
struct cuse_init_out cuse_out;
...
uint8_t req_header[REQ_HEADER_SZ];
}
}
And then actual data would follow after. Would solve
changes in struct sizes, up to IN_OUT_HEADER_SZ and
REQ_HEADER_SZ, but rather cumbersome.
Thanks,
Bernd
next prev parent reply other threads:[~2024-08-29 14:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-12 16:18 [PATCH v3] fuse: Allow page aligned writes Bernd Schubert
2024-08-12 16:37 ` Bernd Schubert
2024-08-12 23:26 ` Joanne Koong
2024-08-14 16:02 ` Josef Bacik
2024-08-29 12:46 ` Miklos Szeredi
2024-08-29 13:04 ` Bernd Schubert
2024-08-29 13:06 ` Bernd Schubert
2024-08-29 13:45 ` Miklos Szeredi
2024-08-29 14:02 ` Bernd Schubert [this message]
2024-08-29 13:39 ` Miklos Szeredi
2024-09-02 20:59 ` Bernd Schubert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a38eee36-0ce8-4afe-bf2a-99a6fb990ee3@fastmail.fm \
--to=bernd.schubert@fastmail.fm \
--cc=bschubert@ddn.com \
--cc=joannelkoong@gmail.com \
--cc=josef@toxicpanda.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).