Commit 8cdf141
podstorage: fsync storage root before and after creating .bootc_labeled
Sync the storage root directory after relabeling to ensure the label
writes are durable before creating the stamp file, and again after
creating and labeling the stamp file to persist the directory entry.
This avoids a crash leaving the system in a state where the stamp
exists but the relabeling writes were lost.
Closes: #1210
Signed-off-by: Andrew Dunn <andrew@dunn.dev>1 parent 11ea8bc commit 8cdf141
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
238 | 246 | | |
239 | 247 | | |
240 | 248 | | |
| |||
247 | 255 | | |
248 | 256 | | |
249 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
250 | 266 | | |
251 | 267 | | |
252 | 268 | | |
| |||
0 commit comments