Skip to content

[Storage] [STG 104] NFS List V2 Files and Directories#47643

Open
weirongw23-msft wants to merge 7 commits into
Azure:feature/storage/stg103-104from
weirongw23-msft:weirongw23/nfs-list-v2
Open

[Storage] [STG 104] NFS List V2 Files and Directories#47643
weirongw23-msft wants to merge 7 commits into
Azure:feature/storage/stg103-104from
weirongw23-msft:weirongw23/nfs-list-v2

Conversation

@weirongw23-msft

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label Jun 24, 2026
self.file_mode = kwargs.get("x-ms-mode")
self.link_count = kwargs.get("x-ms-link-count")
self.nfs_file_type = kwargs.get("x-ms-file-file-type")
self.link_text = None

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get File Properties REST API does not return x-ms-link-text, x-ms-device-major, x-ms-device-minor, etc. These fields are only available from listing XML, which is populated in _from_generated.

@weirongw23-msft weirongw23-msft marked this pull request as ready for review June 24, 2026 17:18

# A canned "List Files and Directories" response containing every NFS item type. It is not possible to
# create block devices, character devices, FIFOs, or sockets through the REST interface, so a mocked
# response is used to verify that the SDK can parse all of them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any NFS specific fields we could verify? If so, we should probably have a real test that only verifies the things we know we have along with this mock test to verify everything.

Possible str values are "timestamps", "Etag", "Attributes", "PermissionKey",
"Permissions", "LinkCount", "NfsAttributes", and "All".
The values "Permissions", "LinkCount", "NfsAttributes", and "All" apply to NFS shares,
with the exception of "All" which can also be used on SMB shares.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This doc reads a bit weird. Maybe just mention "Permissions", "LinkCount", "NfsAttributes" only apply to NFS shares.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants