Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
8639f243
Commit
8639f243
authored
Jul 27, 2015
by
markturansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebased and updated
parent
920cb34b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
gce_pd.go
pkg/volume/gce_pd/gce_pd.go
+2
-2
disk_manager.go
pkg/volume/rbd/disk_manager.go
+1
-5
rbd_util.go
pkg/volume/rbd/rbd_util.go
+1
-9
No files found.
pkg/volume/gce_pd/gce_pd.go
View file @
8639f243
...
...
@@ -229,8 +229,8 @@ func (b *gcePersistentDiskBuilder) SetUpAt(dir string) error {
return
nil
}
func
(
pd
*
gcePersistentDisk
)
IsReadOnly
()
bool
{
return
pd
.
readOnly
func
(
b
*
gcePersistentDiskBuilder
)
IsReadOnly
()
bool
{
return
b
.
readOnly
}
func
makeGlobalPDName
(
host
volume
.
VolumeHost
,
devName
string
)
string
{
...
...
pkg/volume/rbd/disk_manager.go
View file @
8639f243
...
...
@@ -62,11 +62,7 @@ func diskSetUp(manager diskManager, b rbdBuilder, volPath string, mounter mount.
}
// Perform a bind mount to the full path to allow duplicate mounts of the same disk.
options
:=
[]
string
{
"bind"
}
<<<<<<<
HEAD
if
b
.
ReadOnly
{
=======
if
disk
.
readOnly
{
>>>>>>>
rebased
and
updated
to
latest
if
b
.
IsReadOnly
()
{
options
=
append
(
options
,
"ro"
)
}
err
=
mounter
.
Mount
(
globalPDPath
,
volPath
,
""
,
options
)
...
...
pkg/volume/rbd/rbd_util.go
View file @
8639f243
...
...
@@ -161,11 +161,7 @@ func (util *RBDUtil) loadRBD(rbd *rbd, mnt string) error {
func
(
util
*
RBDUtil
)
fencing
(
b
rbdBuilder
)
error
{
// no need to fence readOnly
<<<<<<<
HEAD
if
b
.
ReadOnly
{
=======
if
rbd
.
readOnly
{
>>>>>>>
rebased
and
updated
to
latest
if
b
.
IsReadOnly
()
{
return
nil
}
return
util
.
rbdLock
(
b
,
true
)
...
...
@@ -173,11 +169,7 @@ func (util *RBDUtil) fencing(b rbdBuilder) error {
func
(
util
*
RBDUtil
)
defencing
(
c
rbdCleaner
)
error
{
// no need to fence readOnly
<<<<<<<
HEAD
if
c
.
ReadOnly
{
=======
if
rbd
.
readOnly
{
>>>>>>>
rebased
and
updated
to
latest
return
nil
}
...
...
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