From owner-freebsd-fs@FreeBSD.ORG Thu Sep 30 17:23:08 2010 Return-Path: Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F13751065695 for ; Thu, 30 Sep 2010 17:23:08 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 462238FC32 for ; Thu, 30 Sep 2010 17:23:07 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id UAA25971; Thu, 30 Sep 2010 20:23:06 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4CA4C77A.2030807@icyb.net.ua> Date: Thu, 30 Sep 2010 20:23:06 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100920 Lightning/1.0b2 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-fs@FreeBSD.ORG, Jeremy Chadwick , Andriy Gapon , Oliver Fromme References: <201009301707.o8UH7xAs026168@lurza.secnetix.de> In-Reply-To: <201009301707.o8UH7xAs026168@lurza.secnetix.de> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Strange ZFS problem, filesystem claims to be full when clearly not full X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2010 17:23:09 -0000 on 30/09/2010 20:07 Oliver Fromme said the following: > Last time I had a try at fstat(1), it wasn't able to print > actual file names, while lsof was able to do it. That's > why I generally prefer lsof over fstat(1). For most of my > needs fstat(1) is useless if it can't display file names. > (I think DragonFly's fstat(1) can do it, FWIW.) Point taken. However fstat still does print inode numbers. > Of course, in this particular case it might be irrelevant > because the files in questions don't have names anymore. Right. > On the other hand, I'm not sure how to use fstat(1) to > identify files with link count zero ... I'm looking at > the manpage, but maybe it's just too late in the evening. > What command line would you suggest, exactly? At least > it doesn't seem to be as easy as "lsof +L1". Well, I am believer in a Unix way - each tool for its own small job, combine the tools to get a big job done. One tool that does all with a million obscure options does not appeal to me. But that's me. And in this particular case what you ask is irrelevant. We just need to find all processes having opened files on a particular filesystem. -- Andriy Gapon