From owner-freebsd-questions@FreeBSD.ORG Mon Sep 12 19:53:30 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E72D3106566C for ; Mon, 12 Sep 2011 19:53:29 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 791EC8FC14 for ; Mon, 12 Sep 2011 19:53:29 +0000 (UTC) Received: by fxg9 with SMTP id 9so1841016fxg.13 for ; Mon, 12 Sep 2011 12:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Ue88pkm0mLe86K9h67dfz4K33ehHLHYxCLR4tiZLNXI=; b=EYfBPyXsfWw6UVFUrPDwDwpVwv7wOTXm6WMYdDjOveKcplRckdBI8nAuJKHoe/ZBgA vuCLZN1VfGVhh+dvPU6e6U/frYTSmskegVLYcjeS28wPAu7gX8NbZG8kTlYFmx5eldXM 0KsOwj87F5c5kDipgZPCs7Y2bgWN5v58TU/28= MIME-Version: 1.0 Received: by 10.223.14.2 with SMTP id e2mr1519643faa.107.1315857208615; Mon, 12 Sep 2011 12:53:28 -0700 (PDT) Received: by 10.223.119.196 with HTTP; Mon, 12 Sep 2011 12:53:28 -0700 (PDT) In-Reply-To: References: <955223604.20110912012332@yandex.ru> <1395681231.20110912084617@yandex.ru> <1479400055.20110912223943@yandex.ru> Date: Mon, 12 Sep 2011 14:53:28 -0500 Message-ID: From: Adam Vande More To: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Re[4]: How to check where space is LOST X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 19:53:30 -0000 2011/9/12 Adam Vande More > 2011/9/12 =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA > >> # fstat -f /var >> >> USER CMD PID FD MOUNT INUM MODE SZ|DV R/W >> >> root snmpd 20545 3 /var 47141 -rw------- 37217152 w >> >> root snmpd 20545 8 /var 47159 -rw-r----- 728 r >> >> root cron 20455 wd /var 47105 drwxr-x--- 512 r >> >> ... >> >> >> # find /var -inum 47141 -ls >> > You find the inode number with fstat(1) then use find(1) to translate it = to > a filename. It works fine here, if it doesn't work for you perhaps you h= ave > a user error or there is some other sort of bug. > One other thing, it's possible the inode is gone by the time you have run find(1) so be sure you are working with current fstat(1) output. May be easier to script the transform if this is something you are doing regularly= . --=20 Adam Vande More