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
f2f88204
Commit
f2f88204
authored
Oct 11, 2017
by
Di Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix azureDisk warns about disk format failure
parent
0564d529
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
azure_common_linux.go
pkg/volume/azure_dd/azure_common_linux.go
+3
-2
No files found.
pkg/volume/azure_dd/azure_common_linux.go
View file @
f2f88204
...
@@ -150,9 +150,10 @@ func formatIfNotFormatted(disk string, fstype string, exec mount.Exec) {
...
@@ -150,9 +150,10 @@ func formatIfNotFormatted(disk string, fstype string, exec mount.Exec) {
_
,
err
:=
exec
.
Run
(
"mkfs."
+
fstype
,
args
...
)
_
,
err
:=
exec
.
Run
(
"mkfs."
+
fstype
,
args
...
)
if
err
==
nil
{
if
err
==
nil
{
// the disk has been formatted successfully try to mount it again.
// the disk has been formatted successfully try to mount it again.
glog
.
Infof
(
"azureDisk - Disk successfully formatted (mkfs): %s - %s %s"
,
fstype
,
disk
,
"tt"
)
glog
.
Infof
(
"azureDisk - Disk successfully formatted with 'mkfs.%s %v'"
,
fstype
,
args
)
}
else
{
glog
.
Warningf
(
"azureDisk - Error formatting volume with 'mkfs.%s %v': %v"
,
fstype
,
args
,
err
)
}
}
glog
.
Warningf
(
"azureDisk - format of disk %q failed: type:(%q) target:(%q) options:(%q)error:(%v)"
,
disk
,
fstype
,
"tt"
,
"o"
,
err
)
}
else
{
}
else
{
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Warningf
(
"azureDisk - Failed to check if the disk %s formatted with error %s, will attach anyway"
,
disk
,
err
)
glog
.
Warningf
(
"azureDisk - Failed to check if the disk %s formatted with error %s, will attach anyway"
,
disk
,
err
)
...
...
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