Skip to content
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

Copy command fails on azure file shares with force=true, because stat(...).inode == 0 #36749

Open
jonbarkerlondon opened this issue Jul 21, 2020 · 2 comments
Labels
domain:filesystem Underlying file system and functions that use it

Comments

@jonbarkerlondon
Copy link

jonbarkerlondon commented Jul 21, 2020

I created a SO question, but received no further info.

https://stackoverflow.com/questions/63002995/julia-copy-method-on-azure-fileshares-fails-stat-inode-is-always-zero


When copying data from \azurefileshare\a\1 to \azurefileshare\a\2 we get an error:

'src' and 'dst' refer to the same file/dir

After some investigation, it seems julia uses the stat command to determine if folders are identical by comparing the stat(xxx).inode and stat(xxx).device

image

However, the inode is always 0 for any Azure folders that we pass into stat(foldername).

Questions:

Have we misconfigured our Azure file shares?
Is this a bug in the stat() implementation in julia?
Is the julia inode comparison logic flawed?
Much appreciated.

@musm musm added the domain:filesystem Underlying file system and functions that use it label Jul 21, 2020
@StefanKarpinski
Copy link
Sponsor Member

Julia uses libuv for the stat implementation, so if there is a bug with it, it's an upstream libuv bug. I wonder if an inode of zero occurs in normal cases. If not, then we could use that to detect that something different needs to be done. But it would be even better if the inode was correctly reported.

@StefanKarpinski
Copy link
Sponsor Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:filesystem Underlying file system and functions that use it
Projects
None yet
Development

No branches or pull requests

3 participants