Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for fs (0.23 sec)

  1. src/archive/tar/tar_test.go

    			ModTime:  time.Unix(1360600852, 0),
    			Typeflag: TypeSymlink,
    		},
    		fm: 0777 | fs.ModeSymlink,
    	}, {
    		// character device node.
    		h: &Header{
    			Name:     "dev/null",
    			Mode:     0666,
    			Size:     0,
    			ModTime:  time.Unix(1360578951, 0),
    			Typeflag: TypeChar,
    		},
    		fm: 0666 | fs.ModeDevice | fs.ModeCharDevice,
    	}, {
    		// block device node.
    		h: &Header{
    			Name:     "dev/sda",
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  2. 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")
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 814 bytes
    - Viewed (0)
  3. src/archive/zip/writer.go

    	}
    	w.compressors[method] = comp
    }
    
    // AddFS adds the files from fs.FS to the archive.
    // It walks the directory tree starting at the root of the filesystem
    // adding each file to the zip using deflate while maintaining the directory structure.
    func (w *Writer) AddFS(fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(name string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    		if d.IsDir() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/cmd/api/main_test.go

    // This makes all the references to os.FileInfo in go1.txt
    // be read as if they said fs.FileInfo, since os.FileInfo is now an alias.
    // If there are many of these, we could do a more general solution,
    // but for now the replacer is fine.
    var aliasReplacer = strings.NewReplacer(
    	"os.FileInfo", "fs.FileInfo",
    	"os.FileMode", "fs.FileMode",
    	"os.PathError", "fs.PathError",
    )
    
    func fileFeatures(filename string, needApproval bool) []string {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  5. cmd/setup-type.go

    package cmd
    
    // SetupType - enum for setup type.
    type SetupType int
    
    const (
    	// UnknownSetupType - starts with unknown setup type.
    	UnknownSetupType SetupType = iota
    
    	// FSSetupType - FS setup type enum.
    	FSSetupType
    
    	// ErasureSDSetupType - Erasure single drive setup enum.
    	ErasureSDSetupType
    
    	// ErasureSetupType - Erasure setup type enum.
    	ErasureSetupType
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  6. internal/disk/stat_freebsd.go

    		Files:  s.Files,
    		Ffree:  uint64(s.Ffree),
    		FSType: getFSType(s.Fstypename[:]),
    	}
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/archive/zip/struct.go

    	case fs.ModeNamedPipe:
    		m = s_IFIFO
    	case fs.ModeSocket:
    		m = s_IFSOCK
    	case fs.ModeDevice:
    		m = s_IFBLK
    	case fs.ModeDevice | fs.ModeCharDevice:
    		m = s_IFCHR
    	}
    	if mode&fs.ModeSetuid != 0 {
    		m |= s_ISUID
    	}
    	if mode&fs.ModeSetgid != 0 {
    		m |= s_ISGID
    	}
    	if mode&fs.ModeSticky != 0 {
    		m |= s_ISVTX
    	}
    	return m | uint32(mode&0777)
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  8. internal/disk/stat_linux_s390x.go

    	// https://github.com/minio/minio/issues/8035
    	// XFS can show wrong values at times error out
    	// in such scenarios.
    	if info.Free > info.Total {
    		return info, fmt.Errorf("detected free space (%d) > total drive space (%d), fs corruption at (%s). please run 'fsck'", info.Free, info.Total, path)
    	}
    	info.Used = info.Total - info.Free
    	return info, nil
    }
    
    // GetDriveStats returns IO stats of the drive by its major:minor
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  9. src/archive/zip/reader.go

    // using the semantics of fs.FS.Open:
    // paths are always slash separated, with no
    // leading / or ../ elements.
    func (r *Reader) Open(name string) (fs.File, error) {
    	r.initFileList()
    
    	if !fs.ValidPath(name) {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
    	}
    	e := r.openLookup(name)
    	if e == nil {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrNotExist}
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  10. cmd/xl-storage_windows_test.go

    	// Instantiate posix object to manage a disk
    	fs, err := newLocalXLStorage(dir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Create volume to use in conjunction with other StorageAPI's file API(s)
    	err = fs.MakeVol(context.Background(), "voldir")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for i, test := range testCases {
    		t.Run(fmt.Sprint(i), func(t *testing.T) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 29 06:35:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
Back to top