Commit e1f51ba
Kazuyoshi Kato
Use os.File#Seek() to get the size of a block device
Instead of calling blockdev(1), this change uses os.File#Seek which
would be more effecient.
firecracker-microvm/firecracker#1371
Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>1 parent 1b05b60 commit e1f51ba
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
327 | 329 | | |
328 | 330 | | |
329 | 331 | | |
330 | | - | |
331 | | - | |
332 | | - | |
| 332 | + | |
| 333 | + | |
333 | 334 | | |
334 | | - | |
| 335 | + | |
335 | 336 | | |
| 337 | + | |
336 | 338 | | |
337 | | - | |
338 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
| |||
0 commit comments