SMB1: Application produces EBUSY error deleting a file, STATUS_SHARING_VIOLATION returned by CIFS server

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content