Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for O_TRUNC (0.04 sec)

  1. src/main/java/jcifs/smb/SmbFile.java

                    req.setDesiredAccess(access);
    
                    if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC && ( flags & SmbConstants.O_CREAT ) == O_CREAT ) {
                        req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE_IF);
                    }
                    else if ( ( flags & SmbConstants.O_TRUNC ) == O_TRUNC ) {
                        req.setCreateDisposition(Smb2CreateRequest.FILE_OVERWRITE);
                    }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    			if file.FileInfo().IsDir() {
    				return os.MkdirAll(extractedFilePath, file.Mode())
    			}
    			outputFile, err := os.OpenFile(extractedFilePath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, file.Mode())
    			if err != nil {
    				return err
    			}
    			defer outputFile.Close()
    			_, err = io.Copy(outputFile, zippedFile)
    			return err
    		}()
    		if err != nil {
    			return err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. cmd/xl-storage.go

    // Create or truncate an existing file before writing
    func (s *xlStorage) writeAllInternal(ctx context.Context, filePath string, b []byte, sync bool, skipParent string) (err error) {
    	flags := os.O_CREATE | os.O_WRONLY | os.O_TRUNC
    
    	var w *os.File
    	if sync {
    		// Perform DirectIO along with fdatasync for larger xl.meta, mostly when
    		// xl.meta has "inlined data" we prefer writing O_DIRECT and then doing
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top