mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
fix bug for regular empty file
This commit is contained in:
parent
da31c50da1
commit
f715d41635
@ -259,7 +259,7 @@ func (n *Mounter) GetFileType(pathname string) (mount.FileType, error) {
|
||||
return mount.FileTypeBlockDev, nil
|
||||
case "directory":
|
||||
return mount.FileTypeDirectory, nil
|
||||
case "regular file":
|
||||
case "regular file", "regular empty file":
|
||||
return mount.FileTypeFile, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user