Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for GetFsType (0.14 sec)

  1. internal/disk/stat_linux.go

    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    		Free:  uint64(s.Frsize) * s.Bavail,
    		Files: s.Files,
    		Ffree: s.Ffree,
    		//nolint:unconvert
    		FSType: getFSType(int64(s.Type)),
    	}
    
    	st := syscall.Stat_t{}
    	err = syscall.Stat(path, &st)
    	if err != nil {
    		return Info{}, err
    	}
    	//nolint:unconvert
    	devID := uint64(st.Dev) // Needed to support multiple GOARCHs
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. pkg/volume/csi/fake/fake_client.go

    		return nil, errors.New("missing volume id")
    	}
    	if req.GetTargetPath() == "" {
    		return nil, errors.New("missing target path")
    	}
    	fsTypes := "block|ext4|xfs|zfs"
    	fsType := req.GetVolumeCapability().GetMount().GetFsType()
    	if !strings.Contains(fsTypes, fsType) {
    		return nil, errors.New("invalid fstype")
    	}
    
    	if req.GetVolumeId() == NodePublishTimeOut_VolumeID {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
Back to top