Handle EROFS errors #16

Merged
merged 1 commit into from Apr 30, 2012

2 participants

@isaacs

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.

@isaacs isaacs 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.
17ee84f
@substack substack merged commit 17ee84f into substack:master Apr 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment