]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
afs: prevent double cell registration
authorSven Schnelle <svens@stackframe.org>
Fri, 28 Mar 2008 21:15:55 +0000 (14:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 28 Mar 2008 21:45:21 +0000 (14:45 -0700)
commit5214b729e1c2dc3af8f55e6c4c548844c3bea0f5
tree8838edf8e3d4068c41816d7b17c63849318ceb93
parentfac533c2505b39faf30492cd3f0844c0da51c75c
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 <svens@stackframe.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/afs/cell.c