Skip to content

Commit

Permalink
avoid returning ENOSPC
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldovich committed Sep 25, 2015
1 parent 4dd44f8 commit 27c4078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fuse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ fscqCreate fr m_fsxp (_:path) entrytype _ dev = withMVar m_fsxp $ \fsxp -> do
_ -> return (Nothing, ())
debugMore r
case r of
Nothing -> return eNOSPC
Nothing -> return eIO
Just _ -> return eOK
| otherwise -> return eNOTDIR
fscqCreate _ _ _ _ _ _ = return eOPNOTSUPP
Expand All @@ -339,7 +339,7 @@ fscqCreateDir fr m_fsxp (_:path) _ = withMVar m_fsxp $ \fsxp -> do
(r, ()) <- fr $ FS.mkdir fsxp dnum filename
debugMore r
case r of
Nothing -> return eNOSPC
Nothing -> return eIO
Just _ -> return eOK
| otherwise -> return eNOTDIR
fscqCreateDir _ _ _ _ = return eOPNOTSUPP
Expand Down

0 comments on commit 27c4078

Please sign in to comment.