From owner-freebsd-fs@FreeBSD.ORG Sun Jan 27 08:36:15 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 44483885 for ; Sun, 27 Jan 2013 08:36:15 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx1.freebsd.org (Postfix) with ESMTP id E6B926EF for ; Sun, 27 Jan 2013 08:36:14 +0000 (UTC) Received: by mail-ve0-f176.google.com with SMTP id jz10so820786veb.21 for ; Sun, 27 Jan 2013 00:36:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=q+uUE05NiEyIeIIx+aEuROqd5fZh/rgvROYilMBRroU=; b=lE7ff3CBXRhn0XbbkYTq/jKO+30C05ihIKteqoTnUIkUj1UWuLXo1m+S/SD8Z4aSOu mltHcAHlJS0RnHfP4tnWl/rk/KIA2Y+rvLRqNkq95ut8pfumrjRxPES1iyWRa7bmVLSe KHUSEa595EYDBraTMoHdFe4kaGhUdLMxmFI+ZMipT82+O8GqdI7x7pSrxq/nIoBtUgNF 3Ko+B7ICn4HvRcSUWIW9Unrf7meuXsbTqspE9SmM5dKaiGS5LDCBoJIDTeOwSN0ugDYR i01F3vcvu1a0wLCcirH0WtMk2u9zBKMoNz+X4HZ/NHIs5+Muv6XfgubbHVsatY/OHve8 XFAQ== MIME-Version: 1.0 X-Received: by 10.52.67.75 with SMTP id l11mr10033428vdt.29.1359275768423; Sun, 27 Jan 2013 00:36:08 -0800 (PST) Received: by 10.220.219.79 with HTTP; Sun, 27 Jan 2013 00:36:08 -0800 (PST) Date: Sun, 27 Jan 2013 03:36:08 -0500 Message-ID: Subject: ZFS slackspace, grepping it for data From: grarpamp To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 08:36:15 -0000 Say there's a 100GB zpool over a single vdev (one drive). It's got a few datasets carved out of it. How best to stroll through only the 10GB of slackspace (aka: df 'Avail') that is present? I tried making a zvol out of it but only got 10mb of zeros, which makes sense because zfs isn't managing anything written there in that empty zvol yet. I could troll the entire drive, but that's 10x the data and I don't really want the current 90gb of data in the results. There is zdb -R, but I don't know the offsets of the slack, unless they are somehow tied to the pathname hierarchy. Any ideas?