Package: btrfs-progs Version: 7.1-1 Severity: normal Tags: upstream root@ami:~# btrfs sub del /test root@ami:~# echo $? 1 root@ami:~# ls -al /test total 0 drwx------. 1 root root 0 Aug 24 22:31 . drwxr-xr-x. 1 root root 262 Aug 24 22:31 ..
The above is an example of it failing due to SE Linux denying read access to the directory. While the recent SE Linux policy will allow that for all reasonable labels error conditions should still be flagged to the operator. Here is strace output: openat(AT_FDCWD, "/test", O_RDONLY) = -1 EACCES (Permission denied) close(3) = 0 exit_group(1) = ? +++ exited with 1 +++ What I expect to see is a printf with a brief explanation of the issue so the sysadmin doesn't need to run strace to find out what is going on and so that if a cron job fails there will be email sent. Also if openat() succeeds but ioctl fails later in the operation it is another situation of a quiet exit(1) with no explanation. -- System Information: Debian Release: forky/sid Architecture: amd64 (x86_64) Kernel: Linux 7.2-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages btrfs-progs depends on: ii libblkid1 2.42.2-3 ii libc6 2.43-3 ii libcom-err2 1.47.4-1+b1 ii libext2fs2t64 1.47.4-1+b1 ii liblzo2-2 2.10-3+b2 ii libudev1 261.2-1 ii libuuid1 2.42.2-3 ii libzstd1 1.5.7+dfsg-4 ii zlib1g 1:1.3.dfsg+really1.3.2-3 btrfs-progs recommends no packages. Versions of packages btrfs-progs suggests: pn duperemove <none> -- debconf-show failed

