From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935396AbdKPVby (ORCPT ); Thu, 16 Nov 2017 16:31:54 -0500 Received: from mga06.intel.com ([134.134.136.31]:32198 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932780AbdKPVbu (ORCPT ); Thu, 16 Nov 2017 16:31:50 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,405,1505804400"; d="scan'208";a="176645637" Date: Thu, 16 Nov 2017 14:31:47 -0700 From: Ross Zwisler To: Ross Zwisler , Dave Chinner , Amir Goldstein , Josef Bacik , Eryu Guan , fstests , linux-kernel , Alasdair Kergon , Dan Williams , Jan Kara , Mike Snitzer , Shaohua Li , dm-devel@redhat.com, linux-nvdimm@lists.01.org, linux-raid@vger.kernel.org, linux-fsdevel , Ext4 , linux-xfs , Christoph Hellwig Subject: Re: [fstests PATCH v3] generic: add test for DAX MAP_SYNC support Message-ID: <20171116213147.GB27448@linux.intel.com> Mail-Followup-To: Ross Zwisler , Dave Chinner , Amir Goldstein , Josef Bacik , Eryu Guan , fstests , linux-kernel , Alasdair Kergon , Dan Williams , Jan Kara , Mike Snitzer , Shaohua Li , dm-devel@redhat.com, linux-nvdimm@lists.01.org, linux-raid@vger.kernel.org, linux-fsdevel , Ext4 , linux-xfs , Christoph Hellwig References: <20171025204704.3382-1-ross.zwisler@linux.intel.com> <20171025215638.GA30335@dastard> <20171116212815.GA27448@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171116212815.GA27448@linux.intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 16, 2017 at 02:28:15PM -0700, Ross Zwisler wrote: > On Thu, Oct 26, 2017 at 08:56:38AM +1100, Dave Chinner wrote: > > Perhaps stat -c %b $SCRATCH_MNT/test ? > > Maybe, but doesn't the output of 'stat -c %b' depend on the block size the > filesystem is using? I think to use stat I'd have to check both %b and %B, > and account for different block sizes, or do some shell math. I think it may > be easier to just use du. Ah, never mind, I think you meant 'stat -c %s' - that's cleaner, will switch.