From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57239) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyTne-0004ta-I7 for qemu-devel@nongnu.org; Mon, 16 Nov 2015 19:07:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyTnb-0000lh-6j for qemu-devel@nongnu.org; Mon, 16 Nov 2015 19:07:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyTnb-0000lM-16 for qemu-devel@nongnu.org; Mon, 16 Nov 2015 19:07:03 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 0EE4F3C223 for ; Tue, 17 Nov 2015 00:07:01 +0000 (UTC) From: Bandan Das Date: Mon, 16 Nov 2015 19:06:30 -0500 Message-Id: <1447718794-19812-1-git-send-email-bsd@redhat.com> Subject: [Qemu-devel] [PATCH v3 0/4] usb-mtp events support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Bandan Das , kraxel@redhat.com This series adds support for mtp events that are piggybacked on top of the Linux provided inotify mechanism. It performs well with some light unit testing in a linux guest. The mtp share is still read only, but now the guest will notice updates to the share as long as the mtp client being used supports it. v3: 3/4: Add watch on a dir only when guest requests its contents instead of when the dir is created Removed some unused trace functions v2: 1/4: Split up the check in usb_mtp_handle_reset into a new patch Rerrange the check for a null "o" 2/4: New patch that handles freeing of objects during a reset 3/4: Reword comment for DELETE event Reword comment for CREATE event for directories Rearrange the inotifyfd reading loop for readability Check for duplicates when creating a new object Remove unnecessary enum and replace with mtp event codes Add ifdefs and empty stubs for non linux systems. Ugly but I really wanted to minimize ifdef clutter. The other option is to compile mtp support for linux only but that seems a bit restrictive. Change behavior for "failed events" Instead of bailing out immediately, check if there's still some left that we can process. 4/4: No change Bandan Das (4): usb-mtp: use a list for keeping track of children usb-mtp: free objects on a mtp reset usb-mtp: Add support for inotify based file monitoring usb-mtp: add support for basic mtp events hw/usb/dev-mtp.c | 330 ++++++++++++++++++++++++++++++++++++++++++++++++++++--- trace-events | 2 + 2 files changed, 314 insertions(+), 18 deletions(-) -- 2.5.0