SMB1: Application produces EBUSY error deleting a file, STATUS_SHARING_VIOLATION returned by CIFS server
Issue
Application receives an EBUSY error while trying to delete a file from a CIFS filesystem:
[root@rhel66 mnt2]# strace -e unlink,unlinkat rm -rf testfile
unlinkat(AT_FDCWD, "testfile", 0) = -1 EBUSY (Device or resource busy)
Environment
- RHEL 6, RHEL 7, SMB1
- NetApp CIFS server
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.