From: "Darrick J. Wong" <djwong@kernel.org>
To: Dave Dykstra <dave.dykstra@cern.ch>
Cc: linux-ext4@vger.kernel.org,
Dave Dykstra <2129743+DrDaveD@users.noreply.github.com>
Subject: Re: [PATCH] fuse2fs: revert change of storing boolean options in bytes instead of ints
Date: Fri, 10 Oct 2025 08:17:04 -0700 [thread overview]
Message-ID: <20251010151704.GC6170@frogsfrogsfrogs> (raw)
In-Reply-To: <20251010144758.11944-1-dave.dykstra@cern.ch>
On Fri, Oct 10, 2025 at 09:47:58AM -0500, Dave Dykstra wrote:
> This reverts commit c7f2688540d95e7f2cbcd178f8ff62ebe079faf7
> which turned the ints into uint8_t but didn't realize that
> fuse_opt_parse() assumes they are ints.
>
> Fixes https://github.com/tytso/e2fsprogs/issues/245
>
> Signed-off-by: Dave Dykstra <2129743+DrDaveD@users.noreply.github.com>
Thanks for the patch, but I already sent this a month ago:
https://lore.kernel.org/linux-ext4/175797569727.245695.9292992844444922508.stgit@frogsfrogsfrogs/
Could you reply to that patch with a review, please?
(also the libfuse code that does this is f*cking evil...)
--D
> ---
> misc/fuse2fs.c | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c
> index cb5620c7..f565dbe7 100644
> --- a/misc/fuse2fs.c
> +++ b/misc/fuse2fs.c
> @@ -217,17 +217,17 @@ struct fuse2fs {
> pthread_mutex_t bfl;
> char *device;
> char *shortdev;
> - uint8_t ro;
> - uint8_t debug;
> - uint8_t no_default_opts;
> - uint8_t panic_on_error;
> - uint8_t minixdf;
> - uint8_t fakeroot;
> - uint8_t alloc_all_blocks;
> - uint8_t norecovery;
> - uint8_t kernel;
> - uint8_t directio;
> - uint8_t acl;
> + int ro;
> + int debug;
> + int no_default_opts;
> + int panic_on_error;
> + int minixdf;
> + int fakeroot;
> + int alloc_all_blocks;
> + int norecovery;
> + int kernel;
> + int directio;
> + int acl;
>
> int logfd;
> int blocklog;
> --
> 2.43.5
>
>
prev parent reply other threads:[~2025-10-10 15:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-10 14:47 [PATCH] fuse2fs: revert change of storing boolean options in bytes instead of ints Dave Dykstra
2025-10-10 15:17 ` Darrick J. Wong [this message]
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=20251010151704.GC6170@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=2129743+DrDaveD@users.noreply.github.com \
--cc=dave.dykstra@cern.ch \
--cc=linux-ext4@vger.kernel.org \
/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