Entry in /proc/mounts:
//OUR_ORG.file.core.windows.net/OUR_ORG /data/csv cifs rw,relatime,vers=3.0,sec=ntlmssp,cache=strict,username=OUR_ORG,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=SOME_IP,file_mode=0777,dir_mode=0777,soft,persistenthandles,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1 0 0
I'm trying to run command:
find /data/csv -mtime -1 -name '*.csv.gz'
Unfortunely, it's super slow.
ls -alh --time-style=+%D /data/csv/
This command runs fine and completes in less than 2 seconds.
I checked strace. find use newfstatat internally, but ls use lstat internally.
I would prefer to use find with some switch rather than parse ls output. Can I somehow make find command reasonably fast?