Commit 29b007e
committed
nvme: add O_TRUNC when opening output files for read commands
The file might already exist, thus in the case make sure it's truncated
to zero before writing to it.
Signed-off-by: Daniel Wagner <wagi@kernel.org>1 parent 24860ff commit 29b007e
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2256 | 2256 | | |
2257 | 2257 | | |
2258 | 2258 | | |
2259 | | - | |
| 2259 | + | |
2260 | 2260 | | |
2261 | 2261 | | |
2262 | 2262 | | |
| |||
8486 | 8486 | | |
8487 | 8487 | | |
8488 | 8488 | | |
8489 | | - | |
| 8489 | + | |
8490 | 8490 | | |
8491 | 8491 | | |
8492 | 8492 | | |
| |||
9364 | 9364 | | |
9365 | 9365 | | |
9366 | 9366 | | |
9367 | | - | |
| 9367 | + | |
9368 | 9368 | | |
9369 | 9369 | | |
9370 | 9370 | | |
| |||
10484 | 10484 | | |
10485 | 10485 | | |
10486 | 10486 | | |
10487 | | - | |
| 10487 | + | |
10488 | 10488 | | |
10489 | 10489 | | |
10490 | 10490 | | |
| |||
0 commit comments