Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for UndoWrite (0.23 sec)

  1. cmd/storage-datatypes.go

    //go:generate msgp -file=$GOFILE
    
    // DeleteOptions represents the disk level delete options available for the APIs
    type DeleteOptions struct {
    	BaseOptions
    	Recursive bool `msg:"r"`
    	Immediate bool `msg:"i"`
    	UndoWrite bool `msg:"u"`
    	// OldDataDir of the previous object
    	OldDataDir string `msg:"o,omitempty"` // old data dir used only when to revert a rename()
    }
    
    // BaseOptions represents common options for all Storage API calls
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. cmd/storage-datatypes_gen.go

    			}
    		case "i":
    			z.Immediate, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "Immediate")
    				return
    			}
    		case "u":
    			z.UndoWrite, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "UndoWrite")
    				return
    			}
    		case "o":
    			z.OldDataDir, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "OldDataDir")
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  3. cmd/xl-storage-disk-id-check.go

    	if err != nil {
    		return err
    	}
    	defer func() {
    		defer done(0, &err)
    
    		if err == nil && !skipAccessChecks(volume) {
    			if opts.UndoWrite {
    				p.storage.setWriteAttribute(p.totalWrites.Add(^uint64(0)))
    				return
    			}
    
    			if fi.Deleted {
    				// Delete markers are a write operation not a permanent delete.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:56:26 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    			// via active healing.
    			dg.Go(func() error {
    				return disks[index].DeleteVersion(context.Background(), dstBucket, dstEntry, metadata[index], false, DeleteOptions{
    					UndoWrite:  true,
    					OldDataDir: dataDirs[index],
    				})
    			}, index)
    		}
    		dg.Wait()
    	}
    	var dataDir string
    	var versions []byte
    	if err == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. cmd/xl-storage.go

    		defer metaDataPoolPut(buf)
    		if err != nil {
    			return err
    		}
    
    		return s.writeAllMeta(ctx, volume, pathJoin(path, xlStorageFormatFile), buf, true)
    	}
    
    	if opts.UndoWrite && opts.OldDataDir != "" {
    		return renameAll(pathJoin(filePath, opts.OldDataDir, xlStorageFormatFileBackup), pathJoin(filePath, xlStorageFormatFile), filePath)
    	}
    
    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