« Previous | Next » 

Revision 926487b7

ID926487b70be7cfd0303168a68a092bc6faf122ca

Added by Sripathi Kodi over 13 years ago

virtio-9p: Return correct error from v9fs_remove

Signed-off-by: Sripathi Kodi <>

In v9fs_remove_post_remove() we currently ignore the error returned by
the previous call to remove() and return an error only if freeing the
fid fails. However, the client expects to see the error from remove().
Currently the client falsely thinks that the remove call has always
succeeded. For example, doing rmdir on a non-empty directory does
not return ENOTEMPTY.

With this patch we ignore the error from free_fid(). The client cannot
use this error value anyway.

Signed-off-by: Sripathi Kodi <>
Signed-off-by: Venkateswararao Jujjuri <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences