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

df: /run/user/1000/doc: Operation not permitted (os error 1) #239

Closed
fox0 opened this issue Sep 22, 2024 · 1 comment
Closed

df: /run/user/1000/doc: Operation not permitted (os error 1) #239

fox0 opened this issue Sep 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fox0
Copy link
Contributor

fox0 commented Sep 22, 2024

Describe the bug
df not work

To Reproduce
Steps to reproduce the behavior:

  1. Run strace target/debug/df
newfstatat(AT_FDCWD, "/run/user/1000", {st_mode=S_IFDIR|0700, st_size=420, ...}, 0) = 0
statfs("/run/user/1000/doc", 0x7fff0b3dbe98) = -1 EPERM (Операция не позволена)
$ mount | grep '/run/user/1000/'
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Operaing system (OS) info:

$ uname -a
Linux deb12 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux
$ cat /etc/debian_version 
12.7

Patch:

                let rc = libc::statfs(me.mnt_dir, &mut mount);
                if rc < 0 {
                    eprintln!("{}: {}", String::from(dirname.to_str().unwrap()), io::Error::last_os_error());
                    continue;  // <--
                }

or fox0@2806bb7

@fox0 fox0 added the bug Something isn't working label Sep 22, 2024
@jgarzik
Copy link
Contributor

jgarzik commented Sep 22, 2024

Would you be willing to submit a PR?

Your other changes are welcome to be considered as well. Just please put new features and cleanups in separate commits from bug fixes. (See Linux kernel expert talk about this in https://github.com/axboe/liburing/blob/master/CONTRIBUTING.md)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants