From 930b588395b8f5864e10688075482e421af7b43d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 18 Nov 2011 17:35:38 +0100 Subject: 9p: pass dotl flags to the unlinkat method AT_REMOVEDIR is not defined on all systems. Pass the raw flags from the 9p protocol, which are always there. Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- hw/9pfs/virtio-9p.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'hw/9pfs/virtio-9p.c') diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index 01cf337e36..1b2fc5dfb6 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -74,15 +74,6 @@ static int omode_to_uflags(int8_t mode) return ret; } -static int dotl_to_at_flags(int flags) -{ - int rflags = 0; - if (flags & P9_DOTL_AT_REMOVEDIR) { - rflags |= AT_REMOVEDIR; - } - return rflags; -} - struct dotl_openflag_map { int dotl_flag; int open_flag; @@ -2444,7 +2435,6 @@ static void v9fs_unlinkat(void *opaque) V9fsPDU *pdu = opaque; pdu_unmarshal(pdu, offset, "dsd", &dfid, &name, &flags); - flags = dotl_to_at_flags(flags); dfidp = get_fid(pdu, dfid); if (dfidp == NULL) { -- cgit v1.2.1