Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 852 for projid (0.14 sec)

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

    			// now treat it as an idempotent operation
    			return project.id, false, nil
    		}
    		idMap[project.id] = true
    	}
    	var needToAddProjid = true
    	for _, projid := range list.projid {
    		idMap[projid.id] = true
    		if projid.id == id && id != common.BadQuotaID {
    			needToAddProjid = false
    		}
    	}
    	var err error
    	if id == common.BadQuotaID {
    		id, err = findAvailableQuota(path, idMap)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. pkg/volume/util/fsquota/quota_linux.go

    	}
    	if !supportsQuotas {
    		return nil
    	}
    	projid, err := GetQuotaOnDir(m, path)
    	if err == nil && projid != common.BadQuotaID {
    		// This means that we have a quota on the directory but
    		// we can't clear it.  That's not good.
    		err = setQuotaOnDir(path, projid, 0)
    		if err != nil {
    			klog.V(3).Infof("Attempt to clear quota failed: %v", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 07 08:07:51 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  3. pkg/volume/util/fsquota/quota_linux_test.go

    `
    
    	projidHeader = `# This is a /etc/projid header
    xxxxxx:1048579
    `
    	projid1 = `volume1048577:1048577
    `
    	projid2 = `volume1048577:1048577
    volume1048580:1048580
    `
    	projid3 = `volume1048577:1048577
    volume1048580:1048580
    volume1048581:1048581
    `
    	projid4 = `volume1048577:1048577
    volume1048581:1048581
    `
    	projid5 = `volume1048581:1048581
    `
    )
    
    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/test/fakes/gce_metadata_server/main.go

    // limitations under the License.
    
    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"net/http"
    	"os"
    	"os/signal"
    	"syscall"
    
    	"github.com/gorilla/mux"
    )
    
    const (
    	projID     = "test-project"
    	projNumber = "123456789"
    	instance   = "test-instance"
    	instID     = "987654321"
    	zone       = "us-west1-c"
    
    	metaPrefix     = "/computeMetadata/v1"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. pkg/volume/util/fsquota/common/quota_common_linux_impl.go

    	if match[2] != path {
    		return BadQuotaID, fmt.Errorf("mismatch between supplied and returned path (%s != %s)", path, match[2])
    	}
    	projid, err := strconv.ParseInt(match[1], 10, 32)
    	if err != nil {
    		return BadQuotaID, fmt.Errorf("unable to parse project ID from %s (%v)", match[1], err)
    	}
    	return QuotaID(projid), nil
    }
    
    // SetQuotaOnDir applies a quota to the specified directory under the specified mountpoint.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. pkg/volume/util/fsquota/common/quota_common_linux.go

    	// be hit)
    	SetQuotaOnDir(path string, id QuotaID, bytes int64) error
    
    	// QuotaIDIsInUse determines whether the quota ID is in use.
    	// Implementations should not check /etc/project or /etc/projid,
    	// only whether their underlying mechanism already has the ID in
    	// use.
    	// Return value of false with no error means that the ID is not
    	// in use; true means that it is already in use.  An 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)
  7. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary-reacquire-new-proc.go

    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	b0.Event("ProcStart", trace.ProcID(1), testgen.Seq(1))
    	b0.Event("GoSyscallEndBlocked")
    
    	// A running goroutine stole P0 at the generation boundary.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(2), trace.ThreadID(1), go122.GoRunning)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/cmd/trace/procgen.go

    	globalMetricGenerator
    	procRangeGenerator
    	stackSampleGenerator[trace.ProcID]
    	logEventGenerator[trace.ProcID]
    
    	gStates   map[trace.GoID]*gState[trace.ProcID]
    	inSyscall map[trace.ProcID]*gState[trace.ProcID]
    	maxProc   trace.ProcID
    }
    
    func newProcGenerator() *procGenerator {
    	pg := new(procGenerator)
    	rg := func(ev *trace.Event) trace.ProcID {
    		return ev.Proc()
    	}
    	pg.stackSampleGenerator.getResource = rg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. src/internal/trace/testdata/generators/go122-syscall-steal-proc-reacquire-new-proc-bare-m.go

    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcIdle)
    	b0.Event("ProcStatus", trace.ProcID(0), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoRunning)
    	b0.Event("GoSyscallBegin", testgen.Seq(1), testgen.NoStack)
    	b0.Event("ProcStart", trace.ProcID(1), testgen.Seq(1))
    	b0.Event("GoSyscallEndBlocked")
    
    	// A bare M steals the goroutine's P.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 999 bytes
    - Viewed (0)
  10. src/internal/trace/testdata/generators/go122-syscall-steal-proc-gen-boundary.go

    	// acquired a new P.
    	b0 := g.Batch(trace.ThreadID(0), 0)
    	b0.Event("ProcStatus", trace.ProcID(1), go122.ProcRunning)
    	b0.Event("GoStatus", trace.GoID(1), trace.ThreadID(0), go122.GoSyscall)
    	b0.Event("GoSyscallEndBlocked")
    
    	// A running goroutine stole P0 at the generation boundary.
    	b1 := g.Batch(trace.ThreadID(1), 0)
    	b1.Event("ProcStatus", trace.ProcID(2), go122.ProcRunning)
    	b1.Event("GoStatus", trace.GoID(2), trace.ThreadID(1), go122.GoRunning)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 1.1K bytes
    - Viewed (0)
Back to top