From owner-soc-status@FreeBSD.ORG Sat Sep 7 18:39:19 2013 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0018A438 for ; Sat, 7 Sep 2013 18:39:18 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8EEF52E2E for ; Sat, 7 Sep 2013 18:39:18 +0000 (UTC) Received: by mail-ea0-f174.google.com with SMTP id z15so2281229ead.33 for ; Sat, 07 Sep 2013 11:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=EdgRlE65Z5d9DCHGA7SXlNOB42vrFuHvlD+5Wcc9Z7I=; b=ZAYyKHLl2JLmKw2lzvJ8xpU+aDYd/QEf7VD5/rG0PEAX6lmrITqS+Na7NqrJLumBxc trNsKIJ2jZk5gZ7dWqQy4vRz1FbNu4mo7SIup9nJBjrlxrcF3xk+ELaMgHpshMDxOnY0 lVdXBHNCqu7IkLANZMt+Dq3EPrH3JGkOZ1Oi2xHYtFPWYWG2qel542LgWY9usw2d743M sxaqvyUvZ3SpaAV1JlE4KNOcdYD/6u8N++EU1pB6mb/aWvj8iS0zmlmXmasV3DDA6W2w l0EsHc40e6xuzTL+7T5OOEIsloBrj+Ao0HQyb/iAK9wwhqbxNJygNZgr/CV603VRW0SD VkZw== X-Received: by 10.15.93.130 with SMTP id w2mr61588eez.59.1378579157010; Sat, 07 Sep 2013 11:39:17 -0700 (PDT) Received: from mavbook.mavhome.dp.ua ([37.229.21.195]) by mx.google.com with ESMTPSA id f49sm7197742eec.7.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 07 Sep 2013 11:39:16 -0700 (PDT) Sender: Alexander Motin Message-ID: <522B72D2.7070906@FreeBSD.org> Date: Sat, 07 Sep 2013 21:39:14 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130616 Thunderbird/17.0.6 MIME-Version: 1.0 To: zhixiang yu Subject: Re: Weekly report of the passed two weeks References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: soc-status@freebsd.org X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Sep 2013 18:39:19 -0000 Hi. On 07.09.2013 19:26, zhixiang yu wrote: > During the past two weeks, I successfully completed ata command > emulation. The emulation passed some simple tests: > > 1. make partition > 2. make label > 3. format as ufs > 4. copy and compare > 5. umount and mount, then compare again For stress test I would try to create ZFS pool on the device, disable ARC caching and run some heavy filesystem benchmark. ZFS controls disk subsystem sanity on every read and should report you any data inconsistency in `zpool status` output. > You can try it yourself ;) > > The ATAPI commands' support is on-going. Maybe finished by next > weekend. I won't need the same much time as ATA because I'm more > familiar with read/write emulation. While they are not recommended for use by AHCI specification, and may be not required to boot FreeBSD guest, I would still implement ATA PIO commands too because they are still mandatory for any ATA device. Fortunately since AHCI hides PIO transfer details it should be easy. Also, looking on the code, I think that sending any unsupported command to the device now will cause command timeout, while it should return ABORT error status instead. And in general make sure that you implemented all commands support for which you announced in IDENTIFY command output. Also I think it would be good to make FLUSHCACHE commands not only wait for write completion, but really call fsync() on the underlying file. That may be important for client filesystem consistency in case of host system crash. -- Alexander Motin