mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] virt: vbox: Add error mapping for 2 more vbox status codes
@ 2018-01-15 17:46 Hans de Goede
  2018-01-15 17:46 ` [PATCH] virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES Hans de Goede
  0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2018-01-15 17:46 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman, Michael Thayer
  Cc: Hans de Goede, Larry Finger, linux-kernel

Hi All,

This patch adds error mapping for 2 more vbox status codes, it applies on
top of the vboxguest currently queued in char-misc-next.

Mapping of these 2 status codes is necessary for the vboxsf (shared
folders on the guest) fs driver I'm about to submit for mainline inclusion,
IOW this is a runtime-dependency for the vboxsf driver.

Regards,

Hans

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES
  2018-01-15 17:46 [PATCH 0/1] virt: vbox: Add error mapping for 2 more vbox status codes Hans de Goede
@ 2018-01-15 17:46 ` Hans de Goede
  0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2018-01-15 17:46 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman, Michael Thayer
  Cc: Hans de Goede, Larry Finger, linux-kernel

Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES vbox status
codes, these are both used by the vboxsf (shared folder) code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/virt/vboxguest/vboxguest_utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/virt/vboxguest/vboxguest_utils.c b/drivers/virt/vboxguest/vboxguest_utils.c
index 8daea691fbb5..0f0dab8023cf 100644
--- a/drivers/virt/vboxguest/vboxguest_utils.c
+++ b/drivers/virt/vboxguest/vboxguest_utils.c
@@ -731,6 +731,7 @@ static const int vbg_status_code_to_errno_table[] = {
 	[-VERR_NOT_SAME_DEVICE]                          = -EXDEV,
 	[-VERR_NOT_A_DIRECTORY]                          = -ENOTDIR,
 	[-VERR_PATH_NOT_FOUND]                           = -ENOTDIR,
+	[-VERR_INVALID_NAME]                             = -ENOENT,
 	[-VERR_IS_A_DIRECTORY]                           = -EISDIR,
 	[-VERR_INVALID_PARAMETER]                        = -EINVAL,
 	[-VERR_TOO_MANY_OPEN_FILES]                      = -ENFILE,
@@ -748,6 +749,7 @@ static const int vbg_status_code_to_errno_table[] = {
 	[-VERR_NOT_SUPPORTED]                            = -ENOSYS,
 	[-VERR_DIR_NOT_EMPTY]                            = -ENOTEMPTY,
 	[-VERR_TOO_MANY_SYMLINKS]                        = -ELOOP,
+	[-VERR_NO_MORE_FILES]				 = -ENODATA,
 	[-VERR_NO_DATA]                                  = -ENODATA,
 	[-VERR_NET_NO_NETWORK]                           = -ENONET,
 	[-VERR_NET_NOT_UNIQUE_NAME]                      = -ENOTUNIQ,
-- 
2.14.3

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-15 17:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-15 17:46 [PATCH 0/1] virt: vbox: Add error mapping for 2 more vbox status codes Hans de Goede
2018-01-15 17:46 ` [PATCH] virt: vbox: Add error mapping for VERR_INVALID_NAME and VERR_NO_MORE_FILES Hans de Goede

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®