From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [AFS] prevent double cell registration Date: Tue, 25 Mar 2008 17:23:04 +0000 Message-ID: <27146.1206465784@redhat.com> References: <868x0bog65.fsf@deprecated.bitebene.org> Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org To: Sven Schnelle Return-path: Received: from mx1.redhat.com ([66.187.233.31]:32842 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755359AbYCYRXI (ORCPT ); Tue, 25 Mar 2008 13:23:08 -0400 In-Reply-To: <868x0bog65.fsf@deprecated.bitebene.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Sven Schnelle wrote: > kafs doesn't check if the cell already exists - so if you do an > echo "add newcell.org 1.2.3.4" >/proc/fs/afs/cells it will try to > create this cell again. kobject will also complain about a double > registration. To prevent such problems, return -EEXIST in that case. Hmmm... I thought I had that covered. Thanks. Any chance of a Signed-off-by line? David