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
Levin Zimmermann
go-fuse
Commits
d659531b
Commit
d659531b
authored
May 14, 2011
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set newly created directories and files to 0222 too.
parent
fb412db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
unionfs/unionfs.go
unionfs/unionfs.go
+2
-3
No files found.
unionfs/unionfs.go
View file @
d659531b
...
@@ -297,7 +297,7 @@ func (me *UnionFs) Mkdir(path string, mode uint32) (code fuse.Status) {
...
@@ -297,7 +297,7 @@ func (me *UnionFs) Mkdir(path string, mode uint32) (code fuse.Status) {
if
code
.
Ok
()
{
if
code
.
Ok
()
{
me
.
removeDeletion
(
path
)
me
.
removeDeletion
(
path
)
attr
:=
&
os
.
FileInfo
{
attr
:=
&
os
.
FileInfo
{
Mode
:
fuse
.
S_IFDIR
|
mode
,
Mode
:
fuse
.
S_IFDIR
|
mode
|
0222
,
}
}
me
.
branchCache
.
Set
(
path
,
branchResult
{
attr
,
fuse
.
OK
,
0
})
me
.
branchCache
.
Set
(
path
,
branchResult
{
attr
,
fuse
.
OK
,
0
})
}
}
...
@@ -511,7 +511,7 @@ func (me *UnionFs) Create(name string, flags uint32, mode uint32) (fuseFile fuse
...
@@ -511,7 +511,7 @@ func (me *UnionFs) Create(name string, flags uint32, mode uint32) (fuseFile fuse
now
:=
time
.
Nanoseconds
()
now
:=
time
.
Nanoseconds
()
a
:=
os
.
FileInfo
{
a
:=
os
.
FileInfo
{
Mode
:
fuse
.
S_IFREG
|
mode
,
Mode
:
fuse
.
S_IFREG
|
mode
|
0222
,
Ctime_ns
:
now
,
Ctime_ns
:
now
,
Mtime_ns
:
now
,
Mtime_ns
:
now
,
}
}
...
@@ -668,7 +668,6 @@ func (me *UnionFs) Rename(src string, dst string) (code fuse.Status) {
...
@@ -668,7 +668,6 @@ func (me *UnionFs) Rename(src string, dst string) (code fuse.Status) {
return
code
return
code
}
}
func
(
me
*
UnionFs
)
DropCaches
()
{
func
(
me
*
UnionFs
)
DropCaches
()
{
log
.
Println
(
"Forced cache drop on"
,
me
.
roots
)
log
.
Println
(
"Forced cache drop on"
,
me
.
roots
)
me
.
branchCache
.
DropAll
()
me
.
branchCache
.
DropAll
()
...
...
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