From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: UBIFS: Is it possible to get the compressed size of a file? Date: Tue, 03 Feb 2015 11:07:14 +0200 Message-ID: <1422954434.8637.372.camel@sauron.fi.intel.com> References: <,> <54912109.50505@huawei.com> <1422869610.8637.352.camel@sauron.fi.intel.com> <7B8DF06B-EBC8-4C85-AEEA-C2C6A52B8789@dilger.ca> Reply-To: dedekind1@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Sterba , "markus.heininger@online.de" , hujianyang , linux-mtd@lists.infradead.org, Linux Filesystem Development List To: Andreas Dilger Return-path: Received: from mga09.intel.com ([134.134.136.24]:30769 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbbBCJHT (ORCPT ); Tue, 3 Feb 2015 04:07:19 -0500 In-Reply-To: <7B8DF06B-EBC8-4C85-AEEA-C2C6A52B8789@dilger.ca> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, 2015-02-02 at 22:45 -0700, Andreas Dilger wrote: > I think FIEMAP would be a good userspace API to get this kind of > low-level allocation information about the compressed size of data. > For most files it would probably only need a single fiemap_extent > to return the allocation data. Thanks Andreas, indeed FIEMAP sounds like a good answer to the problem. Artem.