Commit 17ee84f
committed
Handle EROFS errors
A EROFS will be raised when trying to write a dir onto a
read-only filesystem. However, if the dir already is there,
then it should be treated like an EEXIST (since EROFS can
be raised by trying to create a dir over a mount point,
where the mount point is not read-only, but you still can't
just clobber over it).
If the dir doesn't already exist, then the EROFS will be
accurately reported as the reason why it could not be
created.1 parent 7b422c7 commit 17ee84f
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
51 | | - | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments