[Cluster-devel] [PATCH] gfs2: add nfslocks mount option

2010-03-25 Thread David Teigland
Using the nfslocks mount option causes gfs2 to pass posix locks from nfs to the dlm to be clustered. It is off by default because posix locks from nfs are not fully handled by the cluster. Signed-off-by: David Teigland --- fs/gfs2/file.c | 11 +++ fs/gfs2/incore.h |1 + fs/gfs2/

[Cluster-devel] [PATCH 1/3] GFS2: Clean up stuffed file copying

2010-03-25 Thread Steven Whitehouse
If the inode size was corrupt for stuffed files, it was possible for the copying of data to overrun the block and/or page. This patch checks for that condition so that this is no longer possible. This is also preparation for the new truncate sequence patch which requires the ability to have stuffe

[Cluster-devel] [PATCH 2/3] GFS2: New truncate sequence

2010-03-25 Thread Steven Whitehouse
There are two parts to this, the second part is to remove the i_disksize variable since after this, initial patch, it will always be identical to the inode's i_size. Thats a simple exercise, for a follow up patch. This is a nice clean up of the truncate code, reducing the code size by approx 50 li

[Cluster-devel] [PATCH 3/3] GFS2: Remove i_disksize

2010-03-25 Thread Steven Whitehouse
After the previous patch i_disksize is always a copy of i_size so it can be removed. Signed-off-by: Steven Whitehouse --- fs/gfs2/aops.c |6 +- fs/gfs2/bmap.c | 13 + fs/gfs2/dir.c| 28 +++- fs/gfs2/file.c |2 +- fs/gf

[Cluster-devel] GFS2: New truncate sequence [0/3]

2010-03-25 Thread Steven Whitehouse
The first patch in this series fixes up some issues relating to handling stuffed filed, and the following two implement the new truncate sequence and remove the i_disksize field from gfs2_inode. This cleans up the truncate handling in gfs2 and makes it match the new standard way of doing things,

Re: [Cluster-devel] [PATCH] GFS2 docs update

2010-03-25 Thread Steven Whitehouse
Hi, Now in the GFS2 -nmw git tree. Thanks, Steve. On Thu, 2010-03-25 at 11:04 +0100, Andrea Gelmini wrote: > Now http://sources.redhat.com/cluster/ is redirected to > http://sources.redhat.com/cluster/wiki/ > > Also fixed tabs in the end. > > Signed-off-by: Andrea Gelmini > --- > Documentati