From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pete Zaitcev Subject: chunkd self-check question Date: Wed, 2 Dec 2009 20:55:32 -0700 Message-ID: <20091202205532.208edab6@redhat.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: hail-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: jeff@garzik.org Cc: Project Hail List I need a way to scan all objects that an Chunk node keeps. There's a function that does it already: fs_list_objs. Looking at it, is there a reason why it uses readdir instead of tchdbiternext? In case of self-checking, scanning directories is undesirable, because if an object somehow (e.g. a hardware failure) ends existing in filesystem but without a corresponding entry in the TC database, it will incorrectly count as present. -- Pete