-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't see directories directly in containers, only in subdirectories when mounted #1284
Comments
Is it a HNS account that you are mounting? |
It is. When creating the storage account via the Azure Portal, I ticked the checkbox next to "Enable hierarchical namespace". It also shows "Enabled" next to the "Hierarchical namespace" property on the overview page of the storage account. |
If its HNS account, then while mounting using blobfuse you need to supply an extra param that informs blobfuse that you are mounting a HNS enabled account. Without this some of the functionality may not work properly. |
Also, as you are mounting a HNS account you config stand invalid for this. Refer below snippet and update accordingly.
|
Let me know if this work fine for you. If so, kindly close this issue here. |
Thanks. The property of I am using Block Blob storage, which is why I chose the |
If your account is HNS enabled, then it works on "dfs" endpoint only and "type: adls" instructs blobfuse to use dfs endpoint for certain operations. HNS-Enable is a Gen2 ADLS account only. |
Kindly close this if adding "adls" as type solves the issue for you. |
Closing this as there is no issue from blobfuse side here. Providing correct option in mount is resolving the issue, as mentioned in customer comment above. Feel free to post here if you have any further queries. |
Which version of blobfuse was used?
version 2.1.1
Which OS distribution and version are you using?
Ubuntu 22.04.3 LTS x86_64
If relevant, please share your mount command.
Config file contents (azure-sa.yaml):
What was the issue encountered?
The blob container is called
ghij
and it contains a directory calledasdf
.If I leave out the
subdirectory: asdf
key-value pair underazstorage
, I'm unable to see theasdf
directory in theghij
container. I can only see the files (block blobs) directly stored in the container alongside the 'asdf' directory.If I include the
subdirectory: asdf
, then I can see both the directories and files (block blobs) inside theasdf
directory.Setting the
virtual-directory
property totrue
orfalse
has no impact on this issue.Have you found a mitigation/solution?
A simple solution would be to always have a single directory inside the container and to always mount it instead of the container, but the container should allow for that behaviour by itself as it does in the Azure Storage Explorer.
Please share logs if available.
If you can tell me where to find the log files, I'll add the contents here.
The text was updated successfully, but these errors were encountered: