Using "honor nodump flag=yes" causes bacula-fd to hang when it finds a fifo
Summary
Reproducibility | Platform | OS | OS Version | Product Version |
---|---|---|---|---|
always | AMD64 | Debian | 11 | 15.0.1 Beta |
Description
When using the "honor nodump flag=yes" option in a fileset, the bacula-fd will hang if it encounters a fifo. This affects Bacula 13 as well.
The problem is that the function no_dump tries to open the file, which hangs if the fifo is not already open for writing. The attached patch nodump-normal-only.patch fixes it to only do that for regular files and directories, which matches the logic in the lsattr and chattr utilities from e2fsprogs that are used to access the no dump flag.
Steps to Reproduce
- Create a fileset with the "honor nodump flag=yes" option.
- Create a fifo with mkfifo.
- Run a backup job that includes the fifo.