From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E52CC432C0 for ; Sun, 17 Nov 2019 10:11:12 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C579920729 for ; Sun, 17 Nov 2019 10:11:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KeCO6Oqt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C579920729 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 47G7CK6ksbzDqd2 for ; Sun, 17 Nov 2019 21:11:09 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2a00:1450:4864:20::534; helo=mail-ed1-x534.google.com; envelope-from=pratikshinde320@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KeCO6Oqt"; dkim-atps=neutral Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 47G7CC5rGBzDqY6 for ; Sun, 17 Nov 2019 21:11:02 +1100 (AEDT) Received: by mail-ed1-x534.google.com with SMTP id a24so11114021edt.0 for ; Sun, 17 Nov 2019 02:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=yaNFogrF+16XDw1ErHSzTBWC0QVu6RcU0Zkdw1QFmKQ=; b=KeCO6Oqtmg9QKXQe3aw3sRLYottLAl1m59oEWneetnYrMgR6/UFVmDg9ZxzlFeYwxc sqR8CxVycRP4pQGkCb68qdwUZgWPjaAOs0bbisUYAYpiB/NNu2RtJoj8N9OrNRzjcYOp S6Sfgoiz2bYQr8ZfdKc8IPRTENt6HUM5uvTGP21uL+UppXFa0ulv42VwiwzwItgCGj7U 98GBznqUw54Lyj6aKHUASsNcDae4AVLVFKquWM9aQVR9P/TKXSuJacDppqAbZV2e9TzF ezq3CDBS2JHEJdi0Kaien5yaXZNAW8mdgnK58WivZJsnfG7zBZ0ebYAlzcUECY7/3q0J pClA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=yaNFogrF+16XDw1ErHSzTBWC0QVu6RcU0Zkdw1QFmKQ=; b=ZXWoRcPuAJMkTy6iJwQ02WFTwgw+vailFC00ZPGeaiE0pm4DscGY4Q74O/tFmR1UQV TbwbkVbXEjTVY58JPHEyyJEz4XwKVAR5p05uqP/yvQnoylYiPit5xMbxlq6z1YFHyBzh oocwNkMogBMyCYd1uEgZXQRrO4U53YQa2snDBDHRwv8xl+6KNWrUiNhiT9B4Wrbvn1IY TaXIR5+uSFJyUwMcDVeCu0MSW7g1QfdFxythHH4WN0kNiibq50a9r+QS9qwAOIsyzr0W B98ivhc9k2TNqqFFWHEK+6COfgg3RldZIkGVO2OwwHqK7DhxW5kEUx+ZGqubcSe+f76t fpZg== X-Gm-Message-State: APjAAAX6aRdIDhYVsHpug06Y1XCdxgJfljTfiOu6h1ZGv1VE4Z2L7zac kDI+YhOg/IlKRCB+qWpwIwskgZ/LYA46yAVRxcY= X-Google-Smtp-Source: APXvYqyxfpVlaex/izvv8tO+qzj/zuA1ct/X0RhxheyUfHQLw7wnUhG6/DoD6sb0uHqApZYpbkXVcKhNMqMzqyYTlew= X-Received: by 2002:a17:906:1d19:: with SMTP id n25mr16509676ejh.151.1573985454815; Sun, 17 Nov 2019 02:10:54 -0800 (PST) MIME-Version: 1.0 From: Pratik Shinde Date: Sun, 17 Nov 2019 15:40:43 +0530 Message-ID: Subject: Support for uncompressed sparse files. To: Gao Xiang , Gao Xiang Content-Type: multipart/alternative; boundary="000000000000ea7ed20597880b7e" X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-erofs@lists.ozlabs.org Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" --000000000000ea7ed20597880b7e Content-Type: text/plain; charset="UTF-8" Hello Gao, I have started working on above functionality for erofs. First thing we need to do is detect sparse files & determine location of holes in it. I was thinking of using lseek() with SEEK_HOLE & SEEK_DATA for detecting holes. Let me know what you think about the approach OR any other better approach in your mind. PS : support for SEEK_HOLE & SEEK_DATA came in 3.4 kernel. --000000000000ea7ed20597880b7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Gao,

I have started wo= rking on above functionality for erofs.
First thing we need to do= is detect sparse files & determine location of holes in it.
=
I was thinking of using lseek() with SEEK_HOLE & SEEK_DA= TA for detecting holes.
Let me know what you think about the appr= oach OR any other better approach in your mind.

PS : support for SEEK_HOLE & SEEK_DATA came in 3.4 kernel.
=

--000000000000ea7ed20597880b7e--