On Wed Nov 25, 2026 at 1:37 PM CET, Paolo Minazzi wrote:
> Hello, I've recently started using OpenBSD and tried rclone to mount Google
> Drive.
> Read-only seems to work, but the problem is with writing.
> After a bit of research, I found that on OpenBSD creating a new file uses
> func (fsys *FS) Mknod(...)
> in the source file
> rclone/cmd/cmount/fs.go
> which returns -ENOSYS by default.
>
> Below are the original and patched versions.
> It seems to work.
> I'd like to ask for your opinion.

On Linux, FreeBSD, and OSX, creating a regular file normally reaches
FUSE’s Create callback, which rclone implements through CreateEx.
OpenBSD’s FUSE interface does not implement create, instead it uses
mknod(). Have a look at fuse_new(3).

I don’t know why rclone leaves mknod() unimplemented.

Your patch treats every Mknod request as a regular file, including
requests for FIFOs or devices; it should reject unsupported types. Also,
O_EXCL may not be enforced in every rclone write path, so existing-file
behaviour needs testing.

I think it is best to discuss what is needed with upstream.

Reply via email to