- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 84 for fileInfo (0.09 sec)
-
cmd/metacache-entries.go
if !v.header.FreeVersion() { return false } } return true } // fileInfo returns the decoded metadata. // If entry is a directory it is returned as that. // If versioned the latest version will be returned. func (e *metaCacheEntry) fileInfo(bucket string) (FileInfo, error) { if e.isDir() { return FileInfo{ Volume: bucket, Name: e.name, Mode: uint32(os.ModeDir), }, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { err := enc.Encode(&v) if err != nil { b.Fatal(err) } } } func BenchmarkDecodeFileInfoMsgp(b *testing.B) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 9.4K bytes - Viewed (0) -
cni/pkg/nodeagent/fakes_test.go
} func (f *fakeFileFakeFds) Fd() uintptr { return f.fd } func (f *fakeFileFakeFds) Stat() (fs.FileInfo, error) { fi, err := f.File.Stat() if err != nil { return nil, err } return &fakeFileFakeFI{FileInfo: fi}, nil } type fakeFileFakeFI struct { fs.FileInfo } func (f *fakeFileFakeFI) Sys() any { return &syscall.Stat_t{Ino: 1} } // Open opens the named file.
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 23:33:46 UTC 2024 - 3.9K bytes - Viewed (0) -
cmd/xl-storage-format-v2.go
case DeleteType: return j.DeleteMarker.VersionID case LegacyType: return [16]byte{} } return [16]byte{} } // ToFileInfo returns FileInfo of the underlying type. func (j *xlMetaV2Version) ToFileInfo(volume, path string, allParts bool) (fi FileInfo, err error) { if j == nil { return fi, errFileNotFound } switch j.Type { case ObjectType: fi, err = j.ObjectV2.ToFileInfo(volume, path, allParts)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 64K bytes - Viewed (1) -
cni/pkg/nodeagent/podcgroupns_linux.go
// See the License for the specific language governing permissions and // limitations under the License. package nodeagent import ( "fmt" "io/fs" "syscall" ) func GetInode(fi fs.FileInfo) (uint64, error) { if stat, ok := fi.Sys().(*syscall.Stat_t); ok { return stat.Ino, nil } return 0, fmt.Errorf("unable to get inode")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 814 bytes - Viewed (0) -
cmd/xl-storage-format-v1.go
return nil } // constant and shouldn't be changed. const ( legacyDataDir = "legacy" ) func (m *xlMetaV1Object) ToFileInfo(volume, path string) (FileInfo, error) { if !m.valid() { return FileInfo{}, errFileCorrupt } fi := FileInfo{ Volume: volume, Name: path, ModTime: m.Stat.ModTime, Size: m.Stat.Size, Metadata: m.Meta, Parts: m.Parts,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 15:30:50 UTC 2024 - 8.4K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns_other.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 781 bytes - Viewed (0) -
cmd/xl-storage-disk-id-check.go
ctx, done, err := p.TrackDiskHealth(ctx, storageMetricReadVersion, volume, path) if err != nil { return fi, err } defer done(0, &err) return xioutil.WithDeadline[FileInfo](ctx, globalDriveConfig.GetMaxTimeout(), func(ctx context.Context) (result FileInfo, err error) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:56:26 UTC 2024 - 34.5K bytes - Viewed (0) -
cmd/xl-storage-free-version.go
) const freeVersion = "free-version" // InitFreeVersion creates a free-version to track the tiered-content of j. If j has // no tiered content, it returns false. func (j xlMetaV2Object) InitFreeVersion(fi FileInfo) (xlMetaV2Version, bool) { if fi.SkipTierFreeVersion() { return xlMetaV2Version{}, false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 02 05:11:03 UTC 2024 - 3.4K bytes - Viewed (0) -
internal/ioutil/read_file.go
// A successful call returns err == nil, not err == EOF. // Because ReadFile reads the whole file, it does not treat an EOF from Read // as an error to be reported. func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) { f, err := OsOpenFile(name, readMode, 0o666) if err != nil { return nil, nil, err } defer f.Close() st, err := f.Stat() if err != nil { return nil, nil, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Dec 09 18:17:51 UTC 2023 - 2.3K bytes - Viewed (0)