[Bug 264196] sysutils/fusefs-ntfs: read(2)ing big files in blocks of 32768 bytes and smaller fails with EINVAL

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 May 2022 07:25:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264196

--- Comment #11 from Alexey Dokuchaev <danfe@FreeBSD.org> ---
(In reply to Alexey Dokuchaev from comment #8)
> ...
> +bmap /Temp/qemu6-6.2.0.pkg blocksize: 65536 index: 1
> +   unique: 14, error: -22 (Invalid argument), outsize: 16
Looks like this -EINVAL comes from `static int ntfs_fuse_bmap()' in the
src/ntfs-3g.c around line 2773.  Adding debug fprintf() like this:

> if (blocksize > ctx->vol->cluster_size) {
>    fprintf(stderr, " >>> blocksize = %zd, cluster_size = %d\n",
>      blocksize, ctx->vol->cluster_size);
>    return -EINVAL;
>}
yields ">>> blocksize = 65536, cluster_size = 4096".

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