Added ReadSymlinkOp.

geesefs-0-30-9
Aaron Jacobs 2015-05-19 16:05:01 +10:00
parent 589723ca4e
commit 83baabeaf5
1 changed files with 22 additions and 0 deletions

View File

@ -886,3 +886,25 @@ type unknownOp struct {
func (o *unknownOp) toBazilfuseResponse() (bfResp interface{}) {
panic(fmt.Sprintf("Should never get here for unknown op: %s", o.ShortDesc()))
}
////////////////////////////////////////////////////////////////////////
// Reading symlinks
////////////////////////////////////////////////////////////////////////
// Read the target of a symlink inode.
type ReadSymlinkOp struct {
commonOp
// The symlink inode that we are reading.
Inode InodeID
// Set by the file system: the target of the symlink.
Target string
}
func (o *ReadSymlinkOp) toBazilfuseResponse() (bfResp interface{}) {
resp := o.Target
bfResp = &resp
return
}