Date: Thu, 30 Sep 2010 19:07:59 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-fs@FreeBSD.ORG, Jeremy Chadwick <freebsd@jdc.parodius.com>, Andriy Gapon <avg@icyb.net.ua> Subject: Re: Strange ZFS problem, filesystem claims to be full when clearly not full Message-ID: <201009301707.o8UH7xAs026168@lurza.secnetix.de> In-Reply-To: <4CA4B12B.7050307@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon wrote: > on 30/09/2010 17:48 Jeremy Chadwick said the following: > > Can someone explain how use of lsof in this regard is different than use > > of fstat(1) like I originally mentioned? Does lsof do something more > > thorough or differently that what fstat does? > > I believe that there is no reason to prefer lsof except for those who spent more > time with Linux than with FreeBSD. 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.) Of course, in this particular case it might be irrelevant because the files in questions don't have names anymore. 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". Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd It's trivial to make fun of Microsoft products, but it takes a real man to make them work, and a God to make them do anything useful.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009301707.o8UH7xAs026168>