SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
POSIX: differentiate device and char device
chrislude27058d0b2e
diff --git a/weed/util/fullpath.go b/weed/util/fullpath.goindex d2fb017a11..6c4f5c6ae5 100644--- a/weed/util/fullpath.go+++ b/weed/util/fullpath.go@@ -52,7 +52,11 @@ func (fp FullPath) AsInode(fileMode os.FileMode) uint64 {} else if fileMode&os.ModeSymlink > 0 {inode += 2} else if fileMode&os.ModeDevice > 0 {- inode += 3+ if fileMode&os.ModeCharDevice > 0 {+ inode += 6+ } else {+ inode += 3+ }} else if fileMode&os.ModeNamedPipe > 0 {inode += 4} else if fileMode&os.ModeSocket > 0 {