Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 129 for symlink2 (1.86 sec)

  1. src/syscall/syscall_linux_test.go

    	}
    
    	err = os.Symlink("file1", "symlink1")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = syscall.Faccessat(_AT_FDCWD, "symlink1", _R_OK, _AT_SYMLINK_NOFOLLOW)
    	if err != nil {
    		t.Errorf("Faccessat SYMLINK_NOFOLLOW: unexpected error %v", err)
    	}
    
    	// We can't really test _AT_SYMLINK_NOFOLLOW, because there
    	// doesn't seem to be any way to change the mode of a symlink.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_gc.go

    						// Hence the symlink may be deemed unhealthy during that period.
    						// See https://github.com/kubernetes/kubernetes/issues/52172
    						//
    						// We only remove unhealthy symlink for dead containers
    						klog.V(5).InfoS("Container is still running, not removing symlink", "containerID", containerID, "path", logSymlink)
    						continue
    					}
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/phases/controlplane/volumes.go

    	// On some systems where we host-mount /etc/ssl/certs, it is also required to mount additional directories.
    	// This is needed due to symlinks pointing from files in /etc/ssl/certs to these directories.
    	for _, caCertsExtraVolumePath := range caCertsExtraVolumePaths {
    		if isExtraVolumeMountNeeded(caCertsExtraVolumePath) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:33:18 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. src/cmd/internal/moddeps/moddeps_test.go

    		if info.IsDir() && (src == filepath.Join(testenv.GOROOT(t), "bin") ||
    			src == filepath.Join(testenv.GOROOT(t), "pkg")) {
    			// If the OS supports symlinks, use them instead
    			// of copying the bin and pkg directories.
    			if err := os.Symlink(src, dst); err == nil {
    				return filepath.SkipDir
    			}
    		}
    
    		perm := info.Mode() & os.ModePerm
    		if info.Mode()&os.ModeSymlink != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/cmd/go/internal/fsys/fsys.go

    			continue
    		}
    		if fi.Mode().IsRegular() {
    			return true, nil
    		}
    
    		// fi is the result of an Lstat, so it doesn't follow symlinks.
    		// But it's okay if the file is a symlink pointing to a regular
    		// file, so use os.Stat to follow symlinks and check that.
    		actualFilePath, _ := OverlayPath(filepath.Join(dir, fi.Name()))
    		fi, err := os.Stat(actualFilePath)
    		if err == nil && fi.Mode().IsRegular() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  6. src/testing/fstest/testfs.go

    	file.Close()
    	if err != nil {
    		t.errorf("%s: Stat: %w", path, err)
    		return
    	}
    	fentry := formatEntry(entry)
    	fientry := formatInfoEntry(info)
    	// Note: mismatch here is OK for symlink, because Open dereferences symlink.
    	if fentry != fientry && entry.Type()&fs.ModeSymlink == 0 {
    		t.errorf("%s: mismatch:\n\tentry = %s\n\tfile.Stat() = %s", path, fentry, fientry)
    	}
    
    	einfo, err := entry.Info()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/impl/DefaultDeleter.java

            StringBuilder help = new StringBuilder("Unable to delete ");
            if (isSymlink.test(file)) {
                help.append("symlink to ");
            }
            if (file.isDirectory()) {
                help.append("directory ");
            } else {
                help.append("file ");
            }
            help.append('\'').append(file).append('\'');
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 17:10:06 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/fsys/fsys_test.go

    	}
    }
    
    func TestWalkSymlink(t *testing.T) {
    	testenv.MustHaveSymlink(t)
    
    	initOverlay(t, `{
    	"Replace": {"overlay_symlink/file": "symlink/file"}
    }
    -- dir/file --`)
    
    	// Create symlink
    	if err := os.Symlink("dir", "symlink"); err != nil {
    		t.Error(err)
    	}
    
    	testCases := []struct {
    		name      string
    		dir       string
    		wantFiles []string
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:52:11 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectoryTest.groovy

            new File(installedJdk, "jdk-123/file").exists()
        }
    
        @Ignore
        def "provisions jdk from tar.gz archive with MacOS symlinks"() {
            def jdkArchive = resources.getResource("jdk-with-symlinks.tar.gz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 06:41:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/os/file_unix.go

    	}
    	return nil
    }
    
    // Symlink creates newname as a symbolic link to oldname.
    // On Windows, a symlink to a non-existent oldname creates a file symlink;
    // if oldname is later created as a directory the symlink will not work.
    // If there is an error, it will be of type *LinkError.
    func Symlink(oldname, newname string) error {
    	e := ignoringEINTR(func() error {
    		return syscall.Symlink(oldname, newname)
    	})
    	if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top