Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for writeCode (0.21 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java

                                 * closes in between
                                 */
        }
    
    
        /**
         * @param writeMode
         *            the writeMode to set
         */
        public final void setWriteMode ( int writeMode ) {
            this.writeMode = writeMode;
        }
    
    
        @Override
        protected int getBatchLimit ( Configuration cfg, byte cmd ) {
            if ( cmd == SMB_COM_READ_ANDX ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

        }
        public String toString() {
            return new String( "SmbComWriteAndX[" +
                super.toString() +
                ",fid=" + fid +
                ",offset=" + offset +
                ",writeMode=" + writeMode +
                ",remaining=" + remaining +
                ",dataLength=" + dataLength +
                ",dataOffset=" + dataOffset + "]" );
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  3. cmd/xl-storage_noatime_notsupported.go

    package cmd
    
    import (
    	"os"
    )
    
    var (
    	// No special option for reads on windows
    	readMode = os.O_RDONLY
    
    	// Write with sync no buffering only used only for `xl.meta` writes
    	writeMode = os.O_SYNC
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 16:36:24 UTC 2024
    - 1001 bytes
    - Viewed (0)
  4. cmd/os-instrumented.go

    	return RenameSys(src, dst)
    }
    
    // OpenFile captures time taken to call os.OpenFile
    func OpenFile(name string, flag int, perm os.FileMode) (f *os.File, err error) {
    	switch flag & writeMode {
    	case writeMode:
    		defer updateOSMetrics(osMetricOpenFileW, name)(err)
    	default:
    		defer updateOSMetrics(osMetricOpenFileR, name)(err)
    	}
    	return os.OpenFile(name, flag, perm)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 15 01:09:38 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. cmd/xl-storage_noatime_supported.go

    	// Add non-block to avoid syscall to attempt to set epoll on files.
    	readMode = os.O_RDONLY | 0x40000 | syscall.O_NONBLOCK // O_NOATIME
    
    	// Write with data sync only used only for `xl.meta` writes
    	writeMode = 0x1000 | syscall.O_NONBLOCK // O_DSYNC
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 16:36:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. cmd/os_unix.go

    	}
    	return nil
    }
    
    // openFileWithFD return 'fd' based file descriptor
    func openFileWithFD(name string, flag int, perm os.FileMode) (fd int, err error) {
    	switch flag & writeMode {
    	case writeMode:
    		defer updateOSMetrics(osMetricOpenFileWFd, name)(err)
    	default:
    		defer updateOSMetrics(osMetricOpenFileRFd, name)(err)
    	}
    	var e error
    	fd, e = syscall.Open(name, flag|syscall.O_CLOEXEC, uint32(perm))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

                if( useNTSmbs ) {
                    reqx.setParam( file.fid, fp, len - w, b, off, w );
    if ((flags & 1) != 0) {
        reqx.setParam( file.fid, fp, len, b, off, w );
        reqx.writeMode = 0x8;
    } else {
        reqx.writeMode = 0;
    }
                    file.send( reqx, rspx );
                    fp += rspx.count;
                    len -= rspx.count;
                    off += rspx.count;
                } else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 9.2K bytes
    - Viewed (0)
Back to top