Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 61b2963

Browse files
committed
Fix typo
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
1 parent c92d2d6 commit 61b2963

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/container.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static int container_setup_volume(struct hyper_container *container)
8181
options = "nouuid";
8282

8383
if (mount(dev, path, vol->fstype, 0, options) < 0) {
84-
perror("mount volume device faled");
84+
perror("mount volume device failed");
8585
return -1;
8686
}
8787

@@ -97,13 +97,13 @@ static int container_setup_volume(struct hyper_container *container)
9797
}
9898

9999
if (mount(volume, mountpoint, NULL, MS_BIND, NULL) < 0) {
100-
perror("mount volume device faled");
100+
perror("mount volume device failed");
101101
return -1;
102102
}
103103

104104
if (vol->readonly &&
105105
mount(volume, mountpoint, NULL, MS_BIND | MS_REMOUNT | MS_RDONLY, NULL) < 0) {
106-
perror("mount fsmap faled");
106+
perror("mount fsmap failed");
107107
return -1;
108108
}
109109

@@ -148,15 +148,15 @@ static int container_setup_volume(struct hyper_container *container)
148148
}
149149

150150
if (mount(src, mountpoint, NULL, MS_BIND, NULL) < 0) {
151-
perror("mount fsmap faled");
151+
perror("mount fsmap failed");
152152
continue;
153153
}
154154

155155
if (map->readonly == 0)
156156
continue;
157157

158158
if (mount(src, mountpoint, NULL, MS_BIND | MS_REMOUNT | MS_RDONLY, NULL) < 0)
159-
perror("mount fsmap faled");
159+
perror("mount fsmap failed");
160160
}
161161

162162
return 0;

0 commit comments

Comments
 (0)