Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
16155913
Commit
16155913
authored
May 19, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added CreateSymlinkOp.
parent
e331443c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
fuseops/ops.go
fuseops/ops.go
+41
-0
No files found.
fuseops/ops.go
View file @
16155913
...
...
@@ -371,6 +371,47 @@ func (o *CreateFileOp) toBazilfuseResponse() (bfResp interface{}) {
return
}
// Create a symlink inode.
type
CreateSymlinkOp
struct
{
commonOp
// The ID of parent directory inode within which to create the child symlink.
Parent
InodeID
// The name of the symlink to create.
Name
string
// The target of the symlink.
Target
string
// Set by the file system: information about the symlink inode that was
// created.
//
// The lookup count for the inode is implicitly incremented. See notes on
// ForgetInodeOp for more information.
Entry
ChildInodeEntry
}
func
(
o
*
CreateSymlinkOp
)
ShortDesc
()
(
desc
string
)
{
desc
=
fmt
.
Sprintf
(
"CreateSymlink(parent=%v, name=%q, target=%q)"
,
o
.
Parent
,
o
.
Name
,
o
.
Target
)
return
}
func
(
o
*
CreateSymlinkOp
)
toBazilfuseResponse
()
(
bfResp
interface
{})
{
resp
:=
bazilfuse
.
SymlinkResponse
{}
bfResp
=
&
resp
convertChildInodeEntry
(
&
o
.
Entry
,
&
resp
.
LookupResponse
)
return
return
}
////////////////////////////////////////////////////////////////////////
// Unlinking
////////////////////////////////////////////////////////////////////////
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment