Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] OSError: [Errno 14] Bad address #199

Closed
maxwowpow opened this issue Dec 15, 2024 · 7 comments
Closed

[Bug] OSError: [Errno 14] Bad address #199

maxwowpow opened this issue Dec 15, 2024 · 7 comments

Comments

@maxwowpow
Copy link

Creating an empty file produces the error OSError: [Errno 14] Bad address

mkdir /tmp/exfat
cd $_
fallocate -l 512M exfat.img
mkfs.exfat exfat.img
sudo mkdir -p /fatimagedir/
sudo mount -o umask=0022,gid=$(id -g),uid=$(id -u) /tmp/exfat/exfat.img /fatimagedir/
cd /fatimagedir
python3 -c 'open("foo", "wb", buffering=0).write(b"")'

See also: https://bbs.archlinux.org/viewtopic.php?id=294837
See also: zed-industries/zed#21595

ArchLinux
Ubuntu
Fedora 41

@maxwowpow maxwowpow changed the title OSError: [Errno 14] Bad address [Bug] OSError: [Errno 14] Bad address Dec 15, 2024
@relan
Copy link
Owner

relan commented Jan 28, 2025

I reproduced this issue with the in-kernel implementation of exFAT.

No such issue with fuse-exfat:

$ sudo losetup -f exfat.img
$ sudo fuse/mount.exfat-fuse -o loop,umask=0022,gid=$(id -g),uid=$(id -u) /dev/loop0 /fatimagedir/
FUSE exfat 1.4.0 (libfuse3)
$ cd /fatimagedir/
$ python3 -c 'open("foo", "wb", buffering=0).write(b"")'
$ ls
foo

@relan relan closed this as completed Jan 28, 2025
@maxwowpow
Copy link
Author

so the recommendation is to mount with fuse, is that correct?

@relan
Copy link
Owner

relan commented Jan 28, 2025

Yes, try fuse-exfat.

@maxwowpow
Copy link
Author

it works for me as you pointed out. Lots of internet articles say though, that exfat is integrated into the kernel and the usage with fuse is "obsolete" and requires compiling from source.

Would that mean a bug in the kernel module needs to be raised? If yes would you know by chance what procedure is best for that like mailing list(s) of a file system responsible etc?

PS: I'm using fedora currently and didn't find any packages in the fedora repo.

@relan
Copy link
Owner

relan commented Jan 31, 2025

Lots of internet articles say though, that exfat is integrated into the kernel and the usage with fuse is "obsolete" and requires compiling from source.

Well, sometimes fuse-exfat works better than in-kernel implementation...

Would that mean a bug in the kernel module needs to be raised?

Seems so. I'd suggest checking https://fedoraproject.org/wiki/Bugzilla and https://bugzilla.kernel.org/

@sandeen
Copy link

sandeen commented Feb 13, 2025

@relan
Copy link
Owner

relan commented Feb 13, 2025

https://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat.git/commit/?h=dev solves the kernel driver issue.

Great! Thanks for letting know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants