Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-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
go-fuse
Commits
7fc85869
Commit
7fc85869
authored
May 02, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Attr.Print to raw/
parent
ce603372
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
fuse/typeprint.go
fuse/typeprint.go
+0
-15
raw/print.go
raw/print.go
+15
-0
No files found.
fuse/typeprint.go
View file @
7fc85869
...
...
@@ -18,21 +18,6 @@ func init() {
}
}
func
(
a
*
Attr
)
String
()
string
{
return
fmt
.
Sprintf
(
"{M0%o S=%d L=%d "
+
"%d:%d "
+
"%d*%d %d:%d "
+
"A %d.%09d "
+
"M %d.%09d "
+
"C %d.%09d}"
,
a
.
Mode
,
a
.
Size
,
a
.
Nlink
,
a
.
Uid
,
a
.
Gid
,
a
.
Blocks
,
a
.
Blksize
,
a
.
Rdev
,
a
.
Ino
,
a
.
Atime
,
a
.
Atimensec
,
a
.
Mtime
,
a
.
Mtimensec
,
a
.
Ctime
,
a
.
Ctimensec
)
}
func
(
me
*
ReadIn
)
String
()
string
{
return
fmt
.
Sprintf
(
"{Fh %d off %d sz %d %s L %d %s}"
,
me
.
Fh
,
me
.
Offset
,
me
.
Size
,
...
...
raw/print.go
View file @
7fc85869
...
...
@@ -202,3 +202,18 @@ func (me *Kstatfs) String() string {
me
.
Blocks
,
me
.
Bfree
,
me
.
Bavail
,
me
.
Files
,
me
.
Ffree
,
me
.
Bsize
,
me
.
NameLen
,
me
.
Frsize
)
}
func
(
a
*
Attr
)
String
()
string
{
return
fmt
.
Sprintf
(
"{M0%o S=%d L=%d "
+
"%d:%d "
+
"%d*%d %d:%d "
+
"A %d.%09d "
+
"M %d.%09d "
+
"C %d.%09d}"
,
a
.
Mode
,
a
.
Size
,
a
.
Nlink
,
a
.
Uid
,
a
.
Gid
,
a
.
Blocks
,
a
.
Blksize
,
a
.
Rdev
,
a
.
Ino
,
a
.
Atime
,
a
.
Atimensec
,
a
.
Mtime
,
a
.
Mtimensec
,
a
.
Ctime
,
a
.
Ctimensec
)
}
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