From owner-freebsd-stable@FreeBSD.ORG Sat Jul 24 05:00:04 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EC03106564A for ; Sat, 24 Jul 2010 05:00:04 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 221D48FC0A for ; Sat, 24 Jul 2010 05:00:03 +0000 (UTC) Received: by qyk31 with SMTP id 31so830465qyk.13 for ; Fri, 23 Jul 2010 22:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=+knYN0frnf+d6vh8t5xkhOZPGcC5Qhwzkg1x4Y8zDCA=; b=cs96Ik/jU2CCZ2oF3uICiLbk4JlmLakLdDxJzraQEAB+WmXlaI3dcK4ZGkFnjp3hIb usb2U+y2EUQBVlfieJmu/mD1wfeXqHMFs750A/dMAw/lZqkfU5G1kYtehNVIA8lAjwKh /g5z2sN89sJ9zzobBx5oZbrcltN/7KEuHO8p0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fvqwvJAwSn9TYB8BVegY3YRQJsNAQpqq2mXXM00tKgAdnCuKwxroKzmdGAet8U8hxD jg22pDZNsMXxM/3sJbZ3jM85hYyWjPFuXTTW7mUr5zSj+J70pxGeM0/+NILQAqcgSzDt VXev3T22gVRIqTMHdbul8RuiJVatXwvt2T27w= MIME-Version: 1.0 Received: by 10.224.123.67 with SMTP id o3mr3265776qar.161.1279947603295; Fri, 23 Jul 2010 22:00:03 -0700 (PDT) Received: by 10.229.29.71 with HTTP; Fri, 23 Jul 2010 22:00:03 -0700 (PDT) In-Reply-To: References: <4C47B57F.5020309@langille.org> <4C48E695.6030602@langille.org> <718046944.20100723032259@nitronet.pl> <4C4A42D5.7080805@langille.org> Date: Sat, 24 Jul 2010 00:00:03 -0500 Message-ID: From: Adam Vande More To: Freddie Cash Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: Using GTP and glabel for ZFS arrays X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jul 2010 05:00:04 -0000 On Fri, Jul 23, 2010 at 9:25 PM, Freddie Cash wrote: > It's theoretical as I have not investigated how to create sparse files > on FreeBSD, nor have I done this. It's based on several posts to the > zfs-discuss mailing list where several people have done this on > OpenSolaris. > Easiest way to create sparse eg 20 GB assuming test.img doesn't exist already truncate -s 20g test.img ls -sk test.img 1 test.img The other standard dd method works fine too, trucate just makes it easy. -- Adam Vande More