Message ID | 20220926231822.994383-10-drosen@google.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | BPF |
Headers | show |
Series | FUSE BPF: A Stacked Filesystem Extension for FUSE | expand |
Context | Check | Description |
---|---|---|
bpf/vmtest-bpf-PR | fail | PR summary |
bpf/vmtest-bpf-VM_Test-1 | pending | Logs for ${{ matrix.test }} on ${{ matrix.arch }} with ${{ matrix.toolchain }} |
bpf/vmtest-bpf-VM_Test-2 | fail | Logs for build for s390x with gcc |
bpf/vmtest-bpf-VM_Test-3 | fail | Logs for build for x86_64 with gcc |
bpf/vmtest-bpf-VM_Test-4 | fail | Logs for build for x86_64 with llvm-16 |
bpf/vmtest-bpf-VM_Test-5 | success | Logs for llvm-toolchain |
bpf/vmtest-bpf-VM_Test-6 | success | Logs for set-matrix |
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index ca65199b38cb..290eae750282 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1122,6 +1122,14 @@ static int fuse_encode_fh(struct inode *inode, u32 *fh, int *max_len, nodeid = get_fuse_inode(inode)->nodeid; generation = inode->i_generation; +#ifdef CONFIG_FUSE_BPF + /* TODO: Does it make sense to support this in some cases? */ + if (!nodeid && get_fuse_inode(inode)->backing_inode) { + *max_len = 0; + return FILEID_INVALID; + } +#endif + fh[0] = (u32)(nodeid >> 32); fh[1] = (u32)(nodeid & 0xffffffff); fh[2] = generation;