Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for 0777 (0.02 sec)

  1. cmd/xl-storage_unix_test.go

    	disk, err := newLocalXLStorage(tmpPath)
    	if err != nil {
    		t.Fatalf("Initializing xlStorage failed with %s.", err)
    	}
    
    	// Attempt to create a volume to verify the permissions later.
    	// MakeVol creates 0777.
    	if err = disk.MakeVol(context.Background(), testCase.volName); err != nil {
    		t.Fatalf("Creating a volume failed with %s expected to pass.", err)
    	}
    
    	// Stat to get permissions bits.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. src/archive/zip/struct.go

    		m |= s_ISUID
    	}
    	if mode&fs.ModeSetgid != 0 {
    		m |= s_ISGID
    	}
    	if mode&fs.ModeSticky != 0 {
    		m |= s_ISVTX
    	}
    	return m | uint32(mode&0777)
    }
    
    func unixModeToFileMode(m uint32) fs.FileMode {
    	mode := fs.FileMode(m & 0777)
    	switch m & s_IFMT {
    	case s_IFBLK:
    		mode |= fs.ModeDevice
    	case s_IFCHR:
    		mode |= fs.ModeDevice | fs.ModeCharDevice
    	case s_IFDIR:
    		mode |= fs.ModeDir
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/archive/tar/tar_test.go

    			Typeflag: TypeReg,
    		},
    		fm: 0644,
    	}, {
    		// symbolic link.
    		h: &Header{
    			Name:     "link.txt",
    			Mode:     0777,
    			Size:     0,
    			ModTime:  time.Unix(1360600852, 0),
    			Typeflag: TypeSymlink,
    		},
    		fm: 0777 | fs.ModeSymlink,
    	}, {
    		// character device node.
    		h: &Header{
    			Name:     "dev/null",
    			Mode:     0666,
    			Size:     0,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. cmd/os-reliable.go

    // syscall.ENOENT (parent does not exist).
    func reliableMkdirAll(dirPath string, mode os.FileMode, baseDir string) (err error) {
    	i := 0
    	for {
    		// Creates all the parent directories, with mode 0777 mkdir honors system umask.
    		if err = osMkdirAll(dirPath, mode, baseDir); err != nil {
    			// Retry only for the first retryable error.
    			if osIsNotExist(err) && i == 0 {
    				i++
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    		0x00, 0x31, 0x31, 0x31, 0x32, 0x32, 0x32, 0x0a,
    		0x50, 0x4b, 0x07, 0x08, 0x1d, 0x88, 0x77, 0xb0,
    		0x07, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00,
    		0x50, 0x4b, 0x01, 0x02, 0x14, 0x03, 0x14, 0x00,
    		0x08, 0x00, 0x00, 0x00, 0x6b, 0xb4, 0xba, 0x46,
    		0x1d, 0x88, 0x77, 0xb0, 0x07, 0x00, 0x00, 0x00,
    		0x07, 0x00, 0x00, 0x00, 0x03, 0x00, 0x18, 0x00,
    		0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  6. src/archive/tar/writer_test.go

    				ModTime:  time.Unix(1245217492, 0),
    			}, nil},
    			testWrite{"Google.com\n", 11, nil},
    
    			testHeader{Header{
    				Typeflag: TypeSymlink,
    				Name:     "link.txt",
    				Linkname: "small.txt",
    				Mode:     0777,
    				Uid:      1000,
    				Gid:      1000,
    				Uname:    "strings",
    				Gname:    "strings",
    				ModTime:  time.Unix(1314603082, 0),
    			}, nil},
    			testWrite{"", 0, nil},
    
    			testClose{nil},
    		},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. common-protos/k8s.io/api/core/v1/generated.proto

      // +optional
      repeated KeyToPath items = 2;
    
      // defaultMode is optional: mode bits used to set permissions on created files by default.
      // Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
      // YAML accepts both octal and decimal values, JSON requires decimal values for mode bits.
      // Defaults to 0644.
      // Directories within the path are not affected by this setting.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 255.8K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    		return err
    	}
    
    	if err = Access(volumeDir); err != nil {
    		// Volume does not exist we proceed to create.
    		if osIsNotExist(err) {
    			// Make a volume entry, with mode 0777 mkdir honors system umask.
    			err = mkdirAll(volumeDir, 0o777, s.drivePath)
    		}
    		if osIsPermission(err) {
    			return errDiskAccessDenied
    		} else if isSysErrIO(err) {
    			return errFaultyDisk
    		}
    		return err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    				"mtime": "1350244992.023960108",
    				"atime": "1350244992.023960108",
    				"ctime": "1350244992.023960108",
    			},
    			Format: FormatPAX,
    		}, {
    			Name:       "a/b",
    			Mode:       0777,
    			Uid:        1000,
    			Gid:        1000,
    			Uname:      "shane",
    			Gname:      "shane",
    			Size:       0,
    			ModTime:    time.Unix(1350266320, 910238425),
    			ChangeTime: time.Unix(1350266320, 910238425),
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  10. src/archive/tar/strconv_test.go

    	vectors := []struct {
    		in   int64
    		want string
    		ok   bool
    	}{
    		// Test base-8 (octal) encoded values.
    		{0, "0\x00", true},
    		{7, "7\x00", true},
    		{8, "\x80\x08", true},
    		{077, "77\x00", true},
    		{0100, "\x80\x00\x40", true},
    		{0, "0000000\x00", true},
    		{0123, "0000123\x00", true},
    		{07654321, "7654321\x00", true},
    		{07777777, "7777777\x00", true},
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Feb 09 05:28:50 UTC 2021
    - 14K bytes
    - Viewed (0)
Back to top