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
	quotaLock.Lock()
	defer quotaLock.Unlock()
	applier := getApplier(path)
	// No applier means directory is not under quota management
	if applier == nil {
		return nil, nil
	}
	inodes, err := applier.GetInodes(path, dirQuotaMap[path])
	if err != nil {
		return nil, err
	}
	return resource.NewQuantity(inodes, resource.DecimalSI), nil
}
// GetInodes -- retrieve the number of inodes in use under the directory
- retrieve the number of inodes in use under the directory
// GetInodes -- retrieve the number of inodes in use under the directory
func GetInodes(path string) (*resource.Quantity, error) {
	quotaLock.Lock()
	defer quotaLock.Unlock()
	applier := getApplier(path)
	if applier == nil {
		return nil, nil
	}
	inodes, err := applier.GetInodes(path, dirQuotaMap[path])
	if err != nil {
		return nil, err
	}
	return resource.NewQuantity(inodes, resource.DecimalSI), nil
}
func GetInodes ( path string ) ( * resource . Quantity , error ) { quotaLock . Lock ( ) defer quotaLock . Unlock ( ) applier := getApplier ( path ) if applier == nil { return nil , nil } inodes , err := applier . GetInodes ( path , dirQuotaMap [ path ] ) if err != nil { return nil , err } return resource . NewQuantity ( inodes , resource . DecimalSI ) , nil }
retrieve the number of inodes in use under the directory
retrieve the number of inodes in use under the directory
// 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 // No applier means directory is not under quota management