From: Sven Schnelle Date: Fri, 28 Mar 2008 21:15:55 +0000 (-0700) Subject: afs: prevent double cell registration X-Git-Tag: v2.6.25-rc8~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5214b729e1c2dc3af8f55e6c4c548844c3bea0f5;p=pandora-kernel.git afs: prevent double cell registration 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. Signed-off-by: Sven Schnelle Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed