-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhel-8.10.z, rhel-9.4.z
-
None
-
Moderate
-
rhel-sst-filesystems
-
8
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
When assigning xfs project ids on a directory tree, special files are excluded, which can lead to errors when performing certain operations later.
Example below
Please provide the package NVR for which bug is seen:
RHEL 8 kernels, RHEL 9 kernels, likely upstream
How reproducible:
easy
Steps to reproduce
create directory containing special file:
# mkdir /var/tmp/testdir # mkfifo /var/tmp/testdir/fifo1
setup project for the directory:
# xfs_quota -xc 'project -sp /var/tmp/testdir 9' / Setting up project 9 (path /var/tmp/testdir)... xfs_quota: skipping special file /var/tmp/testdir/fifo1 Processed 1 (/etc/projects and cmdline) paths for project 9 with recursion depth infinite (-1).
attempt to hardlink the special file:
# ln /var/tmp/testdir/fifo1 /var/tmp/testdir/fifo1_link ln: failed to create hard link '/var/tmp/testdir/fifo1_link' => '/var/tmp/testdir/fifo1': Invalid cross-device link
newly-created special files are linkable:
# mkfifo /var/tmp/testdir/fifo2 # ln /var/tmp/testdir/fifo2 /var/tmp/testdir/fifo2_link
(unclear what/if other operations besides 'ln' will result in errors)
Expected results
existing special files behave like newly-created special files
Actual results
error messages on excluded existing special files