mirror of
https://gitee.com/juicedata/JuiceFS.git
synced 2025-12-06 09:39:14 +08:00
windows: fix symbol link cannot be deleted (#6079)
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -36,5 +36,7 @@ pkg/meta/testdata
|
|||||||
/juicefs.ceph
|
/juicefs.ceph
|
||||||
/juicefs.exe
|
/juicefs.exe
|
||||||
/juicefsd.exe
|
/juicefsd.exe
|
||||||
|
/juicefs.exe~
|
||||||
|
/juicefsd.exe~
|
||||||
/juicefs.lite
|
/juicefs.lite
|
||||||
dist/
|
dist/
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ func (j *juice) Readlink(path string) (e int, target string) {
|
|||||||
e = -fuse.ENOSYS
|
e = -fuse.ENOSYS
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fi, err := j.fs.Stat(ctx, path)
|
fi, err := j.fs.Lstat(ctx, path)
|
||||||
if err != 0 {
|
if err != 0 {
|
||||||
e = errorconv(err)
|
e = errorconv(err)
|
||||||
return
|
return
|
||||||
@@ -496,7 +496,7 @@ func (j *juice) Getattr(p string, stat *fuse.Stat_t, fh uint64) (e int) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fi, err := j.fs.Stat(ctx, p)
|
fi, err := j.fs.Lstat(ctx, p)
|
||||||
if err != 0 {
|
if err != 0 {
|
||||||
// Known issue: If the parent directory is not exists, the Windows api such as
|
// Known issue: If the parent directory is not exists, the Windows api such as
|
||||||
// GetFileAttributeX expects the ERROR_PATH_NOT_FOUND returned.
|
// GetFileAttributeX expects the ERROR_PATH_NOT_FOUND returned.
|
||||||
|
|||||||
Reference in New Issue
Block a user