Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for GetInodes (0.12 sec)

  1. pkg/volume/util/fsquota/quota_unsupported.go

    	return errNotImplemented
    }
    
    // GetConsumption -- dummy implementation
    func GetConsumption(_ string) (*resource.Quantity, error) {
    	return nil, errNotImplemented
    }
    
    // GetInodes -- dummy implementation
    func GetInodes(_ string) (*resource.Quantity, error) {
    	return nil, errNotImplemented
    }
    
    // ClearQuota -- dummy implementation
    func ClearQuota(_ mount.Interface, _ string) error {
    	return errNotImplemented
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/common/quota_common_linux.go

    	// enumerate the directory.
    	GetConsumption(path string, id QuotaID) (int64, error)
    
    	// GetInodes returns the number of inodes used by the
    	// directory, determined by the implementation's quota-based
    	// mechanism.  If it is unable to do so using that mechanism,
    	// it should return an error and allow higher layers to
    	// enumerate the directory.
    	GetInodes(path string, id QuotaID) (int64, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/quota_linux_test.go

    		err = fakeAssignQuota(testcase.path, testcase.poduid, testcase.bytes)
    	case "Clear":
    		err = fakeClearQuota(testcase.path)
    	case "GetConsumption":
    		_, err = GetConsumption(testcase.path)
    	case "GetInodes":
    		_, err = GetInodes(testcase.path)
    	default:
    		t.Errorf("Case %v (%s, %s, %v) unknown operation %s", seq, testcase.name, testcase.path, true, testcase.op)
    		return true
    	}
    	if err != nil && testcase.expectsSetQuota {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    func (v linuxVolumeQuotaApplier) GetConsumption(_ string, id QuotaID) (int64, error) {
    	return getQuantity(v.mountpoint, id, "-b", 1024, v.allowEmptyOutput)
    }
    
    // GetInodes returns the inodes in use if available via quotas
    func (v linuxVolumeQuotaApplier) GetInodes(_ string, id QuotaID) (int64, error) {
    	return getQuantity(v.mountpoint, id, "-i", 1, v.allowEmptyOutput)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  5. pkg/volume/util/fsquota/quota.go

    	// Get the quota-based storage consumption for the path
    	GetConsumption(path string) (*resource.Quantity, error)
    
    	// Get the quota-based inode consumption for the path
    	GetInodes(path string) (*resource.Quantity, error)
    
    	// Remove the quota from a path
    	// Implementations may assume that any data covered by the
    	// quota has already been removed.
    	ClearQuota(m mount.Interface, path string) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 28 06:09:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. pkg/volume/util/fsquota/quota_linux.go

    	ibytes, err := applier.GetConsumption(path, dirQuotaMap[path])
    	if err != nil {
    		return nil, err
    	}
    	return resource.NewQuantity(ibytes, resource.DecimalSI), nil
    }
    
    // GetInodes -- retrieve the number of inodes in use under the directory
    func GetInodes(path string) (*resource.Quantity, error) {
    	// Note that we actually need to hold the lock at least through
    	// running the quota command, so it can't get recycled behind our back
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  7. pkg/volume/util/fs/fs.go

    		usage.Bytes = consumption.Value()
    		defer servermetrics.CollectVolumeStatCalDuration("fsquota", startTime)
    	} else {
    		defer servermetrics.CollectVolumeStatCalDuration("du", startTime)
    	}
    
    	inodes, _ := fsquota.GetInodes(path)
    	if inodes != nil {
    		usage.Inodes = inodes.Value()
    	}
    
    	if inodes != nil && consumption != nil {
    		return usage, nil
    	}
    
    	topLevelStat := &unix.Stat_t{}
    	err := unix.Stat(path, topLevelStat)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 20 02:56:02 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/build/PlannedNodeGraphTest.groovy

            dependsOn(transform1, [task4])
    
            when:
            collector.collectNodes([task1, task2, task3, task4, transform1])
            def graph = collector.getGraph()
            def nodes = graph.getNodes(PlannedNodeGraph.DetailLevel.LEVEL1_TASKS) as List<TestPlannedNode>
            then:
            nodes.size() == 4
            nodes*.nodeIdentity*.nodeType =~ [NodeType.TASK]
            verifyAll {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 21 13:11:56 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/DependencyGraphBuilder.java

                            implicitProvidersForCapability = Lists.newArrayListWithExpectedSize(versions.size());
                            for (ComponentState version : versions) {
                                List<NodeState> nodes = version.getNodes();
                                for (NodeState nodeState : nodes) {
                                    // Collect nodes as implicit capability providers if different than current node, selected and not having explicit capabilities
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransformNodeDependency.java

        private final Collection<TransformStepNode> nodes;
    
        public DefaultTransformNodeDependency(Collection<TransformStepNode> nodes) {
            this.nodes = nodes;
        }
    
        public Collection<TransformStepNode> getNodes() {
            return nodes;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top