]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Improve journal allocation via sysfs
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 29 Sep 2010 14:04:18 +0000 (15:04 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 29 Sep 2010 14:04:18 +0000 (15:04 +0100)
commite5132cd89c353133c65a21cd38c53905c9fcf611
tree163a391bda495826747eb249cf74b42ad35bd5ec
parent210ed86490b888d3f81fcd1356c7087c0e32b02b
GFS2: Improve journal allocation via sysfs

Recently a feature was added to GFS2 to allow journal id allocation
via sysfs. This patch builds upon that so that a negative journal id
will be treated as an error code to be passed back as the return code
from mount. This allows termination of the mount process if there is
a failure.

Also, the process has been updated so that the kernel will wait
for a journal id, even in the "spectator" case. This is required
in order to avoid mounting a filesystem in case there is an error
while joining the cluster. In the spectator case, 0 is written into
the file to indicate that all is well, and that mount should continue.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/incore.h
fs/gfs2/ops_fstype.c
fs/gfs2/sys.c