From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp2120.oracle.com ([156.151.31.85]:51816 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbfBVQrV (ORCPT ); Fri, 22 Feb 2019 11:47:21 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x1MGiR8t159736 for ; Fri, 22 Feb 2019 16:47:20 GMT Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2qpb5s070s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 22 Feb 2019 16:47:20 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x1MGlJcn011075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 22 Feb 2019 16:47:19 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x1MGlIw6030443 for ; Fri, 22 Feb 2019 16:47:18 GMT Subject: [PATCH 0/4] xfsdump: update to use fallocate From: "Darrick J. Wong" Date: Fri, 22 Feb 2019 08:47:18 -0800 Message-ID: <155085403848.5141.1866278990901950186.stgit@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-xfs-owner@vger.kernel.org List-ID: List-Id: xfs To: darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Hi all, This is a series to update the "create file and preallocate blocks" code in xfs_restore. The first patch refactors the existing copy-pasta into a single helper function to create and preallocate space in files, as well as removing the totally broken ALLOCSP code. The next two patches fix unchecked return values and insufficient unsupported-ioctl code. The final patch upgrades xfs_restore to try fallocate before RESVSP simply because it is the newer API. If you're going to start using this mess, you probably ought to just pull from my git trees, which are linked below. This is an extraordinary way to destroy everything. Enjoy! Comments and questions are, as always, welcome. --D