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.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Sumarigo-MSFT 47,506 Reputation points Microsoft Employee Moderator
    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

0 additional answers

Sort by: Most helpful

Your answer

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