Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
lsattr slowing down archive.extracted #47043
Description of Issue/Question
What I'd like:
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
(Provided by running
Please feel free to ask for any more info if this isn't sufficient.
referenced this issue
Apr 18, 2018
Can confirm. With debug on you get 38865 log lines for 13254 files and spent close to two minutes.
Can this be fixed by adding output_loglevel=warn (or similar) in "file.lsattr"s call to cmd.run. This or a loglevel parameter for file.lsattr - which toggles cmd.run debug level?
Not sure of what the author of file.lsattr had in mind, but maybe @terminalmage can have a look?
The problem is in this block in file.py. This enforcement is extremely expensive for directories with many files. It should be optional, I think.