Closed
Description
System information
Type | Debian Unstable, 5.12.1 |
---|---|
Distribution Name | Debian |
Distribution Version | Unstable |
Linux Kernel | Custom 5.12.1 |
Architecture | x86_64 (amd threadripper) |
ZFS Version | zfs-2.1.99-1 |
SPL Version | 2.1.99-1 |
[ 13.210470] ZFS: Loaded module v2.1.99-1, ZFS pool version 5000, ZFS filesystem version 5 |
Describe the problem you're observing
In my previous 5.11.18 kernel, O_TMPFILE
worked just fine on my zfs datasets. Since booting into 5.12.1, all attempts to use O_TMPFILE
fail with EOPNOTSUPP
. It's entirely possible that this is somehow my error, as it seems a surprising regression.
Describe how to reproduce the problem
[schwarzgerat](1) $ cat ~/zfs.c
#define _GNU_SOURCE
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
int main(int argc, char** argv){
int fd = open(argv[1], O_TMPFILE|O_RDWR);
if(fd < 0){
fprintf(stderr, "error: %s\n", strerror(errno));
return -1;
}
printf("opened %s at %d\n", argv[1], fd);
close(fd);
return 0;
}
[schwarzgerat](0) $
compile it, and provide a path on a zfs dataset. EOPNOTSUPP
results.