CREATE SMB operation when reading an existing file from an SMB share

Artyom Gilevich 20 Reputation points
2024-03-03T12:59:19.7166667+00:00

Hi,

I recently mounted an SMB share to my Linux VM, and every time the VM tries to read an existing file from the share, I'm charged for 3 operations: Create, Read, Close.

Why do we need a Create operation in case of an existing file, and why is this type of operation considered as a Write transaction?

AI Assistant says that we need a Create operation to create a file handle, but still, why is it a Write transaction in case of reading a file? That seems weird that when we read a file, a Write transaction happens.
Screenshot_34

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,275 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sumarigo-MSFT 45,781 Reputation points Microsoft Employee
    2024-03-05T05:23:16.8133333+00:00

    @Artyom Gilevich Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    This behavior is expected. The create is actually a file open, then the file is read and then it's closed. So it's three operations. Opening a file involves a write because the open/close handle information is written to disk. 
    Refer to this article : What are transactions? https://learn.microsoft.com/en-us/azure/storage/files/understanding-billing#what-are-transactions

    If you have any feedback, You may leave your feedback here. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.