Skip to content

Commit

Permalink
Prepare for FUSE protocol 7.28: Opcodes for CopyFileRange
Browse files Browse the repository at this point in the history
`CopyFileRange` support is tracked at
<#245>.
  • Loading branch information
tv42 committed Dec 10, 2022
1 parent a77be66 commit dd1ff79
Showing 1 changed file with 45 additions and 41 deletions.
86 changes: 45 additions & 41 deletions fuse_kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,47 +381,51 @@ var releaseFlagNames = []flagName{

// Opcodes
const (
opLookup = 1
opForget = 2 // no reply
opGetattr = 3
opSetattr = 4
opReadlink = 5
opSymlink = 6
opMknod = 8
opMkdir = 9
opUnlink = 10
opRmdir = 11
opRename = 12
opLink = 13
opOpen = 14
opRead = 15
opWrite = 16
opStatfs = 17
opRelease = 18
opFsync = 20
opSetxattr = 21
opGetxattr = 22
opListxattr = 23
opRemovexattr = 24
opFlush = 25
opInit = 26
opOpendir = 27
opReaddir = 28
opReleasedir = 29
opFsyncdir = 30
opGetlk = 31
opSetlk = 32
opSetlkw = 33
opAccess = 34
opCreate = 35
opInterrupt = 36
opBmap = 37
opDestroy = 38
opIoctl = 39
opPoll = 40
opNotifyReply = 41
opBatchForget = 42
opFAllocate = 43
opLookup = 1
opForget = 2 // no reply
opGetattr = 3
opSetattr = 4
opReadlink = 5
opSymlink = 6
opMknod = 8
opMkdir = 9
opUnlink = 10
opRmdir = 11
opRename = 12
opLink = 13
opOpen = 14
opRead = 15
opWrite = 16
opStatfs = 17
opRelease = 18
opFsync = 20
opSetxattr = 21
opGetxattr = 22
opListxattr = 23
opRemovexattr = 24
opFlush = 25
opInit = 26
opOpendir = 27
opReaddir = 28
opReleasedir = 29
opFsyncdir = 30
opGetlk = 31
opSetlk = 32
opSetlkw = 33
opAccess = 34
opCreate = 35
opInterrupt = 36
opBmap = 37
opDestroy = 38
opIoctl = 39
opPoll = 40
opNotifyReply = 41
opBatchForget = 42
opFAllocate = 43
opReadDirPlus = 44
opRename2 = 45
opLSeek = 46
opCopyFileRange = 47
)

type entryOut struct {
Expand Down

0 comments on commit dd1ff79

Please sign in to comment.