Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 31 22:20:48 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

        }
    
    
        /**
         * @return the info
         */
        public final FileInformation getInfo () {
            return this.info;
        }
    
    
        /**
         * 
         * @param type
         * @return the info
         * @throws CIFSException
         */
        @SuppressWarnings ( "unchecked" )
        public <T extends FileInformation> T getInfo ( Class<T> type ) throws CIFSException {
            if ( !type.isAssignableFrom(this.info.getClass()) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4K bytes
    - Viewed (0)
  3. 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
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 4.8K 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;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 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 {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  6. cmd/xl-storage.go

    	return s, nil
    }
    
    // getDiskInfo returns given disk information.
    func getDiskInfo(drivePath string) (di disk.Info, rootDrive bool, err error) {
    	if err = checkPathLength(drivePath); err == nil {
    		di, err = disk.GetInfo(drivePath, false)
    
    		if !globalIsCICD && !globalIsErasureSD {
    			if globalRootDiskThreshold > 0 {
    				// Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if
    				// this disk is a root disk. treat those disks with
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K 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}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.8K bytes
    - Viewed (0)
  8. 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() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  9. 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]()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
Back to top