Commit 83baabea authored by Aaron Jacobs's avatar Aaron Jacobs

Added ReadSymlinkOp.

parent 589723ca
...@@ -886,3 +886,25 @@ type unknownOp struct { ...@@ -886,3 +886,25 @@ type unknownOp struct {
func (o *unknownOp) toBazilfuseResponse() (bfResp interface{}) { func (o *unknownOp) toBazilfuseResponse() (bfResp interface{}) {
panic(fmt.Sprintf("Should never get here for unknown op: %s", o.ShortDesc())) 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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment