Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for GetInfo (0.33 sec)

  1. internal/disk/stat_linux_s390x.go

    	fsTypeHex := strconv.FormatUint(uint64(ftype), 16)
    	fsTypeString, ok := fsType2StringMap[fsTypeHex]
    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  2. internal/disk/stat_linux.go

    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/prometheus/procfs/blockdevice"
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. internal/disk/disk_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk_test
    
    import (
    	"testing"
    
    	"github.com/minio/minio/internal/disk"
    )
    
    func TestFree(t *testing.T) {
    	di, err := disk.GetInfo(t.TempDir(), true)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if di.FSType == "UNKNOWN" {
    		t.Error("Unexpected FSType", di.FSType)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 31 22:20:48 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/Crypto.java

            if (provider != null) {
                throw new CIFSUnsupportedCryptoException("Provider can't be re-initialized. Provider has already been initialized with "+ provider.getInfo());
            }
            provider = customProvider;
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                    qreq);
                return resp.getInfo(clazz);
            }
            Trans2QueryFSInformationResponse response = new Trans2QueryFSInformationResponse(th.getConfig(), level);
            th.send(new Trans2QueryFSInformation(th.getConfig(), level), response);
            return response.getInfo(clazz);
        }
    
    
        @Override
        public void mkdir () throws SmbException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 81.6K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    			go s.cleanupTrashImmediateCallers(GlobalContext)
    		}
    	}()
    
    	s.drivePath, err = getValidPath(ep.Path)
    	if err != nil {
    		s.drivePath = ep.Path
    		return s, err
    	}
    
    	info, err := disk.GetInfo(s.drivePath, true)
    	if err != nil {
    		return s, err
    	}
    	s.major = info.Major
    	s.minor = info.Minor
    	s.fsType = info.FSType
    
    	if !globalIsCICD && !globalIsErasureSD {
    		var rootDrive bool
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

            setInfoType(Smb2Constants.SMB2_0_INFO_FILE);
            setFileInfoClass(fi.getFileInformationLevel());
            setInfo(fi);
        }
    
    
        /**
         * @param info
         *            the info to set
         */
        public void setInfo ( Encodable info ) {
            this.info = info;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    	madminBgHealState      = grid.NewJSONPool[madmin.BgHealState]()
    	madminCPUs             = grid.NewJSONPool[madmin.CPUs]()
    	madminMemInfo          = grid.NewJSONPool[madmin.MemInfo]()
    	madminNetInfo          = grid.NewJSONPool[madmin.NetInfo]()
    	madminOSInfo           = grid.NewJSONPool[madmin.OSInfo]()
    	madminPartitions       = grid.NewJSONPool[madmin.Partitions]()
    	madminProcInfo         = grid.NewJSONPool[madmin.ProcInfo]()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  9. cmd/notification.go

    			sys.addNodeErr(&reply[index], sys.peerClients[index], err)
    		}
    	}
    	return reply
    }
    
    // GetNetInfo - Network information
    func (sys *NotificationSys) GetNetInfo(ctx context.Context) []madmin.NetInfo {
    	reply := make([]madmin.NetInfo, len(sys.peerClients))
    
    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    		if client == nil {
    			continue
    		}
    		index := index
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    			localNetInfo := madmin.GetNetInfo(globalLocalNodeName, globalInternodeInterface)
    			healthInfo.Sys.NetInfo = append(healthInfo.Sys.NetInfo, localNetInfo)
    
    			peerNetInfos := globalNotificationSys.GetNetInfo(healthCtx)
    			for _, n := range peerNetInfos {
    				anonymizeAddr(&n)
    				healthInfo.Sys.NetInfo = append(healthInfo.Sys.NetInfo, n)
    			}
    			partialWrite(healthInfo)
    		}
    	}
    
    	getAndWriteOSInfo := func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top