From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFhvD-0003Nr-Iq for qemu-devel@nongnu.org; Wed, 22 Jun 2016 09:10:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFhv9-0003xc-TH for qemu-devel@nongnu.org; Wed, 22 Jun 2016 09:10:22 -0400 Date: Wed, 22 Jun 2016 15:10:10 +0200 From: Kevin Wolf Message-ID: <20160622131010.GK6134@noname.redhat.com> References: <939edcdfa8a02e08f4bd0f6444fee6e41d7150b4.1466598035.git.berto@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <939edcdfa8a02e08f4bd0f6444fee6e41d7150b4.1466598035.git.berto@igalia.com> Subject: Re: [Qemu-devel] [PATCH v2 05/15] blockjob: Add 'job_id' parameter to block_job_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Max Reitz , Eric Blake , Jeff Cody Am 22.06.2016 um 14:25 hat Alberto Garcia geschrieben: > Job IDs are generated automatically when a new job is created. This > patch adds a new 'job_id' parameter to let the caller provide one > instead. In this case the ID is verified to be unique and well-formed. > > Signed-off-by: Alberto Garcia > Reviewed-by: Max Reitz > @@ -140,7 +151,7 @@ void *block_job_create(const BlockJobDriver *driver, BlockDriverState *bs, > > job->driver = driver; > job->device = g_strdup(bdrv_get_device_name(bs)); > - job->id = id_generate(ID_JOB); > + job->id = job_id ? g_strdup(job_id) : id_generate(ID_JOB); > job->blk = blk; > job->cb = cb; > job->opaque = opaque; This hunk will trivially conflict with removing device names. You can keep my R-b while resolving that. Reviewed-by: Kevin Wolf