From owner-freebsd-current@FreeBSD.ORG Thu Jul 11 15:11:12 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9890B4A9; Thu, 11 Jul 2013 15:11:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2F11323; Thu, 11 Jul 2013 15:11:11 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id w59so6944762wes.24 for ; Thu, 11 Jul 2013 08:11:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=5GrbIpLRfcEB+FsmLDSh3nYSlQqrwjW6ZsgDQGxZuto=; b=0UPLiQN4fuHVy0Zj7o5fddfEenIWu2Gh87Ry73hydLT9zBbOfAgu7BpUIfkTapIeaH 4b5snfvZpO8lmYIhoqnj4PHdyZOyvKuYXoI16gwFth5BzG3MEXqdpWLRJm0xQc6PRSfS TnVTvWsuufxMFL1SYwMqqdP6S5y9B8Oe7NVseZSt8Iu9HmRFyum9JMAPtidXu2TahedD 9/lvPUbVYAZ5Z/nsZco1ErfvEUdepYCcSBFgr3DVABErz7LQmbMm1/nc5I3pr9Osd9yq A8QJ6jz/AuvxDC3mP+KMEb/wiYf2u6mN3CerusJTDMsRL8rPuwrY5B57oHOoOCqr6Jr7 jAKQ== MIME-Version: 1.0 X-Received: by 10.180.82.196 with SMTP id k4mr22784884wiy.0.1373555471259; Thu, 11 Jul 2013 08:11:11 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.94.132 with HTTP; Thu, 11 Jul 2013 08:11:11 -0700 (PDT) In-Reply-To: <20130711145119.GA8839@glebius.int.ru> References: <20130711101720.GZ67810@FreeBSD.org> <20130711145119.GA8839@glebius.int.ru> Date: Thu, 11 Jul 2013 08:11:11 -0700 X-Google-Sender-Auth: 1AqSpzJj5qF4mObylESV0SjVl1s Message-ID: Subject: Re: hacking - aio_sendfile() From: Adrian Chadd To: Gleb Smirnoff Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jul 2013 15:11:12 -0000 On 11 July 2013 07:51, Gleb Smirnoff wrote: > On Thu, Jul 11, 2013 at 07:45:19AM -0700, Adrian Chadd wrote: > A> I reference the source/dest FDs in the queue method. Is that not good enough? > > I see. Should probably work, but needs testing. It's terrible - I'd think I should pass the file ref's into kern_sendfile() so I'm sure that the process hasn't close/dup'ed an FD in its place in the meantime. Is that better? -adrian