[Cluster-devel] [PATCH 2/2] mkfs.gfs2: Revert default resource group size

2014-11-13 Thread Andrew Price
Choose a more performant resource group size than the maximum by default until gfs2 is more tuned for the larger number of bitmap blocks required for 2GB resource groups. Signed-off-by: Andrew Price anpr...@redhat.com --- gfs2/mkfs/main_mkfs.c | 2 +- 1 file changed, 1 insertion(+), 1

[Cluster-devel] [PATCH 1/2] fsck.gfs2: Improve reporting of pass timings

2014-11-13 Thread Andrew Price
The days value is not currently reported in the pass timings but the hours value is still reported modulo 24. Drop the use of gmtime(3) as it's more appropriate for calendar time operations than elapsed time, and add a simple duration reporting function which matches the existing output format.

[Cluster-devel] [gfs2-utils PATCH] fsck.gfs2: Detect and correct corrupt journals

2014-11-13 Thread Bob Peterson
Hi, This patch changes fsck.gfs2 so that it can detect corruption in the journal sequence numbering scheme. If the corruption is within a certain tolerance (currently 10 sequencing errors) the journal sequence numbers are fixed and journal is replayed as normal. If there are more errors than can

[Cluster-devel] [PATCH 24/56] fs/gfs2: support compiling out splice

2014-11-13 Thread Pieter Smith
Compile out splice support from gfs2 when the splice-family of syscalls is not supported by the system (i.e. CONFIG_SYSCALL_SPLICE is undefined). Signed-off-by: Pieter Smith pie...@boesman.nl --- fs/gfs2/file.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[Cluster-devel] [PATCH 0/2 v2] new vfs freeze hooks and gfs2 freeze rewrite

2014-11-13 Thread Benjamin Marzinski
The existing gfs2 freeze code can't properly make use the kernel vfs freezing code on all the nodes of a cluster. This is because the only hook into the gfs2 freeze code comes inside of freeze_super, which holds the sb-s_umount lock. In order to notify the other nodes in the cluster to freeze the

[Cluster-devel] [PATCH 2/2] gfs2: update freeze code to use freeze/thaw_super on all nodes

2014-11-13 Thread Benjamin Marzinski
The current gfs2 freezing code is considerably more complicated than it should be because it doesn't use the vfs freezing code on any node except the one that begins the freeze. This is because it needs to acquire a cluster glock before calling the vfs code to prevent a deadlock, and without the

[Cluster-devel] [PATCH 1/2] fs: add freeze_super/thaw_super fs hooks

2014-11-13 Thread Benjamin Marzinski
Currently, freezing a filesystem involves calling freeze_super, which locks sb-s_umount and then calls the fs-specific freeze_fs hook. This makes it hard for gfs2 (and potentially other cluster filesystems) to use the vfs freezing code to do freezes on all the cluster nodes. In order to