Re: [Ocfs2-devel] [PATCH 1/1] ocfs2: return -EAGAIN instead of EAGAIN in dlm

2009-11-20 Thread Sunil Mushran
ack Tiger Yang wrote: We used to return positive EAGAIN to indicate a retry action is needed in dlm_begin_reco_handler(). Now we return negative -EAGAIN to erase the confusion caused by this error code. Signed-off-by: Tiger Yang tiger.y...@oracle.com --- fs/ocfs2/dlm/dlmrecovery.c | 18

Re: [Ocfs2-devel] ocfs2 1.6 - sixth set

2009-11-20 Thread Sunil Mushran
Joel Becker wrote: It's yucky, but I know what you're doing. I hope we're going to be able to re-enable quotas? I saved the yuck for last. ;) ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com

Re: [Ocfs2-devel] [PATCH 1/1] ocfs2: return -EAGAIN instead of EAGAIN in dlm

2009-11-18 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com comments inlined Tiger Yang wrote: We used to return positive EAGAIN to indicate a retry action is needed in dlm_begin_reco_handler(). Now we use negative -EAGAIN to erase the confusion caused by this error code. Signed-off-by: Tiger

[Ocfs2-devel] [PATCH 1/1] ocfs2/cluster: Make fence method configurable

2009-11-17 Thread Sunil Mushran
panic /sys/kernel/config/cluster/clustername/fence_method Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/cluster/nodemanager.c | 50 fs/ocfs2/cluster/nodemanager.h |7 + fs/ocfs2/cluster/quorum.c | 14 +- 3 files

[Ocfs2-devel] [PATCH 11/18] ocfs2: Handle missing BDI_CAP_NO_ACCT_AND_WRITEBACK

2009-11-12 Thread Sunil Mushran
Mainline commit e4ad08fe64afca4ef79ecc4c624e6e871688da0d added macro BDI_CAP_NO_ACCT_AND_WRITEBACK. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + kapi-compat/include/bdi_define.h |6

[Ocfs2-devel] [PATCH 10/18] ocfs2: Handle missing bdi_init()/bdi_destroy()

2009-11-12 Thread Sunil Mushran
Mainline commit e0bf68ddec4f4f90e5871404be4f1854c17f3120 added bdi_init() and bdi_destroy(). Patch adds empty inlines to allow building with EL5. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + kapi

[Ocfs2-devel] [PATCH 03/18] ocfs2: Handle missing dtor in kmem_cache_create()

2009-11-12 Thread Sunil Mushran
Mainline commit 20c2df83d25c6a95affe6157a4c9cac4cf5ffaac removed the dtor arg from kmem_cache_create(). Patch adds a kapi macro that adds a dtor arg when building against EL5 kernels. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |1 + Makefile

[Ocfs2-devel] [PATCH 01/18] ocfs2: Add kapi-default.h in cluster and dlm

2009-11-12 Thread Sunil Mushran
Commit 19582597eec08f61b6f5794c15f6f2c9821a67d9 added kapi-default.h in fs/ocfs2. This patch adds a similar named file in fs/ocfs2/cluster and fs/ocfs2/dlm to allow building against the mainline without kapi-compat headers. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2

[Ocfs2-devel] [PATCH 17/18] ocfs2: Handle missing filemap_fdatawait_range()

2009-11-12 Thread Sunil Mushran
-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + fs/ocfs2/file.c |6 +++--- fs/ocfs2/kapi-default.h |6 ++ kapi-compat

[Ocfs2-devel] [PATCH 16/18] ocfs2: Handle missing struct path in struct nameidata

2009-11-12 Thread Sunil Mushran
against current and EL5 kernels. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + fs/ocfs2/kapi-default.h|9 + fs/ocfs2/refcounttree.c| 18

[Ocfs2-devel] [PATCH 05/18] ocfs2: Handle missing fmode_t in blkdev_put()

2009-11-12 Thread Sunil Mushran
Mainline commit 9a1c3542768b5a58e45a9216921cd10a3bae1205 added arg fmode_t to blkdev_put(). Patch allows building against EL5 by ignoring that argument. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5

[Ocfs2-devel] [PATCH 15/18] ocfs2: Handle missing export should_remove_suid()

2009-11-12 Thread Sunil Mushran
Mainline commit d23a147bb6e8d467e8df73b6589888717da3b9ce exported the symbol should_remove_suid(). Patch adds compat_should_remove_suid.c that includes the same function that gets built when building with EL5. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 08/18] ocfs2: Handle missing mutex in struct configfs_subsystem

2009-11-12 Thread Sunil Mushran
Mainline commit e6bd07aee739566803425acdbf5cdb29919164e1 changed a semaphore (su_sem) into a mutex (su_mutex) in struct configfs_subsystem. Patch adds macros to allow building with EL5. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile|3

[Ocfs2-devel] [PATCH 09/18] ocfs2: Handle missing helper kernel_sock_shutdown()

2009-11-12 Thread Sunil Mushran
Mainline commit 91cf45f02af5c871251165d000c3f42a2a0b0552 added helper kernel_sock_shutdown(). Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile|3 ++- configure.in|5 + kapi-compat/include/sock_shutdown.h | 17

[Ocfs2-devel] [PATCH 13/18] ocfs2: Handle missing inode_permission()

2009-11-12 Thread Sunil Mushran
Mainline commit f419a2e3b64def707e1384ee38abb77f99af5f6d renamed permission() to inode_permission(). Patch uses an inline to redirect inode_permission() to permission() when building with EL5. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3

[Ocfs2-devel] [PATCH 04/18] ocfs2/cluster: Handle different prototype of bi_end_io_t

2009-11-12 Thread Sunil Mushran
Mainline commit 6712ecf8f648118c3363c142196418f89a510b90 dropped the 'size' argument from bi_end_io_t. Also changed the return from int to void. Patch uses the older prototype when building with EL5 kernels. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 12/18] ocfs2: Handle missing vmops-fault()

2009-11-12 Thread Sunil Mushran
Mainline commit 54cb8821de07f2ffcd28c380ce9b93d5784b40d7 introduced vmops-fault() to replace vmops-populate() and vmops-nopage(). Patch adds nopage() and uses it when building against EL5. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in

[Ocfs2-devel] ocfs2-1.6 - fifth set

2009-11-12 Thread Sunil Mushran
The next set. All patches prior to this have been pushed to the repo. ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

[Ocfs2-devel] [PATCH 02/18] ocfs2: Add KAPI_INIT_WORK macro in kapi-default.h

2009-11-12 Thread Sunil Mushran
Commit dbc80b8f391820b719db97004219327c8cf050bc added KAPI_INIT_WORK macros to fs/ocfs2/kapi-default.h. This patch adds the same to the same header in dlm and cluster sub-directories. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/cluster/kapi-default.h |6 ++ fs

Re: [Ocfs2-devel] [PATCH 01/10] ocfs2: Handle workqueue changes

2009-11-11 Thread Sunil Mushran
Joel Becker wrote: Rather than include kapi-compat/include/workqueue.h at all times, I'd really like to only include it when necessary. That way you can build the driver against mainline even when there is no kapi-compat directory. Can't we have an fs/ocfs2/kapi-default.h that

Re: [Ocfs2-devel] [PATCH 02/10] ocfs2: Handle missing dlmconstants.h

2009-11-11 Thread Sunil Mushran
Joel Becker wrote: Again you're including the kapi-compat header unconditionally. Only include it when it is necessary. Ok. +#ifdef NO_DLMCONSTANTS_HEADER +#include linux/types.h +#include linux/dlm.h Then maybe change this to #ifndef DLM_LOCK_NL # include

[Ocfs2-devel] [PATCH 08/11] ocfs2: Handle struct f_path in struct file

2009-11-11 Thread Sunil Mushran
Mainline commit 0f7fc9e4d03987fe29f6dd4aa67e4c56eb7ecb05 added struct path into struct file. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |1 + Makefile|3 ++- configure.in|6 ++ fs/ocfs2/Makefile

[Ocfs2-devel] [PATCH 01/11] ocfs2: Add kapi-default.h

2009-11-11 Thread Sunil Mushran
Add kapi-default.h to allow us to build ocfs2 1.6 against mainline without the kapi-compat headers. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/Makefile |2 +- fs/ocfs2/kapi-default.h | 26 ++ fs/ocfs2/ocfs2.h|2 ++ 3 files

[Ocfs2-devel] ocfs2 1.6 - second set (2nd attempt)

2009-11-11 Thread Sunil Mushran
Added kapi-default.h to enable us to not have to include kapi-compat headers when building against mainline. Sunil ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

[Ocfs2-devel] [PATCH 11/11] ocfs2: Handle different f_version types

2009-11-11 Thread Sunil Mushran
Mainline commit 2b47c3611de05c585e2d81204f6c7e3e255a3461 changed type of file-f_version from unsigned long to u64. This patch allows building with kernels having either definition. Build fails if the type is something else. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 03/11] ocfs2: Handle missing dlmconstants.h

2009-11-11 Thread Sunil Mushran
Mainline commit d69a3ad6a0e47b2aa9b2b2ddfd385752132a4d34 split lock mode and flag constants from dlm.h into a sharable header, dlmconstants.h. This patch adds a header with the same name that merely includes dlm.h. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 02/11] ocfs2: Handle workqueue changes

2009-11-11 Thread Sunil Mushran
Mainline commit 52bad64d95bd89e08c49ec5a071fa6dcbe5a1a9c introduced struct delayed_work to separate delayable and non-delayable work. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |2 + Makefile|3 +- configure.in

[Ocfs2-devel] [PATCH 2/8] ocfs2: Handle missing vectorized fileops aio_read() and aio_write()

2009-11-11 Thread Sunil Mushran
Mainline commit 027445c37282bc1ed26add45e573ad2d3e4860a5 vectorized fileops aio_read() and aio_write(). Patch provides support for the non-vectorized fileops (in EL5) by hand crafting the iovec with the provided buf and buflen. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com

[Ocfs2-devel] [PATCH 8/8] ocfs2: Handle missing enum value FS_OCFS2

2009-11-11 Thread Sunil Mushran
Mainline commit 0e03036c97b70b2602f7dedaa3a223ed7563c2c9 added enum FS_OCFS2. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + kapi-compat/include/sysctl.h |9 + 3 files changed, 16

[Ocfs2-devel] ocfs2 1.6 - fourth set

2009-11-11 Thread Sunil Mushran
The next set. The previous 3 sets have been pushed to the git repo. ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

[Ocfs2-devel] [PATCH 7/8] ocfs2: Handle older prototype of register_sysctl_table()

2009-11-11 Thread Sunil Mushran
Mainline commit 0b4d414714f0d2f922d39424b0c5c82ad900a381 removed the insert_at_head argument from register_sysctl_table(). Patch allows building with older kernels. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in

[Ocfs2-devel] [PATCH 5/8] ocfs2: Handle missing helper current_fsuid()

2009-11-11 Thread Sunil Mushran
Mainline commit 86a264abe542cfececb4df129bc45a0338d8cdb9 added helper current_fsuid(). An earlier commit grouped security credentials in struct task in struct cred. The patch ensures that if the above helper is not found, that struct cred is missing. If not, build fails. Signed-off-by: Sunil

[Ocfs2-devel] [PATCH 3/8] ocfs2: Handle older prototype of iops-permission()

2009-11-11 Thread Sunil Mushran
the older prototype. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in | 13 + fs/ocfs2/Makefile |4 fs/ocfs2/file.c |4 fs/ocfs2/file.h |4 5 files changed, 26 insertions(+), 0 deletions(-) diff --git

[Ocfs2-devel] [PATCH 4/8] ocfs2: Handle missing helper mandatory_lock()

2009-11-11 Thread Sunil Mushran
Mainline commit a16877ca9cec211708a161057a7cbfbf2cbc3a53 added helper mandatory_lock(). Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |4 kapi-compat/include/mandatory_lock.h | 25

[Ocfs2-devel] [PATCH 1/8] ocfs2: Handle missing macro MNT_RELATIME

2009-11-11 Thread Sunil Mushran
-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + kapi-compat/include/relatime.h |6 ++ 3 files changed, 13 insertions(+), 1 deletions(-) create mode 100644 kapi-compat/include/relatime.h diff --git a/Makefile

[Ocfs2-devel] [PATCH 7/8] ocfs2: Handle non-const vm_area_struct-vm_ops

2009-11-10 Thread Sunil Mushran
Mainline commit f0f37e2f77731b3473fa6bd5ee53255d9a9cdb40 const-ified vm_area_struct-vm_ops. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in |5 + fs/ocfs2/Makefile |4 fs/ocfs2/mmap.c |4 4 files changed, 14

[Ocfs2-devel] [PATCH 4/8] ocfs2: Handle non-const sb-s_op

2009-11-10 Thread Sunil Mushran
Mainline commit ee9b6d61a2a43c5952eb43283f8db284a4e70b8a const-ified sb-s_op. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in |5 + fs/ocfs2/Makefile |4 fs/ocfs2/dlm/Makefile |4 fs/ocfs2/dlm/dlmfs.c

[Ocfs2-devel] [PATCH 1/8] ocfs2: Handle non-const seq_operations

2009-11-10 Thread Sunil Mushran
Mainline commit 15ad7cdcfd76450d4beebc789ec646664238184d const-ified seq_file-op. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |1 + configure.in |5 + fs/ocfs2/Makefile |4 fs/ocfs2/dlmglue.c |4 4 files changed, 14

[Ocfs2-devel] [PATCH 3/8] ocfs2: Handle non-const dentry-d_op

2009-11-10 Thread Sunil Mushran
Mainline commit e56980d451904b623573ef4966cbab768e433c79 const-ified dentry-d_op. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in |6 ++ fs/ocfs2/Makefile |4 fs/ocfs2/dcache.c |4 fs/ocfs2/dcache.h |4 5

[Ocfs2-devel] [PATCH 5/8] ocfs2: Handle non-const sb-s_export_op

2009-11-10 Thread Sunil Mushran
Mainline commit 39655164405940d4818224a085e35420e2f97aed const-ified sb-s_export_op. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in |5 + fs/ocfs2/Makefile |4 fs/ocfs2/export.c |4 fs/ocfs2/export.h |4

[Ocfs2-devel] ocfs2 1.6 - third set

2009-11-10 Thread Sunil Mushran
The third set of patches that deal with missing const modifier in various places in the el5 kernel. ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

[Ocfs2-devel] [PATCH 2/8] ocfs2: Handle non-const inode-i_op

2009-11-10 Thread Sunil Mushran
Mainline commit c5ef1c42c51b1b5b4a401a6517bdda30933ddbaf const-ified inode-i_op. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in|1 + configure.in |5 + fs/ocfs2/Makefile |4 fs/ocfs2/dlm/Makefile |4 fs/ocfs2/dlm

[Ocfs2-devel] [PATCH 8/8] ocfs2: Handle missing const modifier in seq_open()

2009-11-10 Thread Sunil Mushran
Mainline commit 15ad7cdcfd76450d4beebc789ec646664238184d added the const modifier to struct seq_operations * in seq_open(). Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |1 + configure.in|5 + fs/ocfs2/cluster/Makefile |4

[Ocfs2-devel] Initial patches for ocfs2 1.6

2009-11-09 Thread Sunil Mushran
So the ocfs2 1.6 repository is up. It is a copy of the fs in the mainline. I have some 70-80 patches that will make it run atop el5 u4. The patches will be posted in smaller batches so as to make it easier to review. The first set handles the makefiles, etc. Sunil

[Ocfs2-devel] [PATCH 3/4] ocfs2: Fix ocfs2 makefile

2009-11-09 Thread Sunil Mushran
Teach the makefile to handle stackglue and friends. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/Makefile | 115 - 1 files changed, 34 insertions(+), 81 deletions(-) diff --git a/fs/ocfs2/Makefile b/fs/ocfs2/Makefile

[Ocfs2-devel] [PATCH 2/4] ocfs2: Copy Makefiles from ocfs2-1.4

2009-11-09 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/Makefile | 212 ++--- fs/ocfs2/cluster/Makefile | 89 ++- fs/ocfs2/dlm/Makefile | 105 +- 3 files changed, 347 insertions(+), 59 deletions

[Ocfs2-devel] [PATCH 1/4] ocfs2: Add .gitignore

2009-11-09 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- .gitignore | 43 +++ fs/ocfs2/.gitignore | 35 +++ fs/ocfs2/cluster/.gitignore | 35 +++ fs/ocfs2/dlm

[Ocfs2-devel] [PATCH 06/10] ocfs2: Handle missing do_sync_mapping_range()

2009-11-09 Thread Sunil Mushran
Mainline commit 5b04aa3a64f854244bc40a6f528176ed50b5c4f6 added do_sync_mapping_range(). EL5 has do_sync_file_range(). This patch wires do_sync_mapping_range() into do_sync_file_range(). Build fails if both symbols are not found. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile

[Ocfs2-devel] [PATCH 02/10] ocfs2: Handle missing dlmconstants.h

2009-11-09 Thread Sunil Mushran
Mainline commit d69a3ad6a0e47b2aa9b2b2ddfd385752132a4d34 split lock mode and flag constants from dlm.h into a sharable header, dlmconstants.h. This patch adds a header with the same name that merely includes dlm.h. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 10/10] ocfs2: Handle different f_version types

2009-11-09 Thread Sunil Mushran
Mainline commit 2b47c3611de05c585e2d81204f6c7e3e255a3461 changed type of file-f_version from unsigned long to u64. This patch allows building with kernels having either definition. Build fails if the type is something else. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in

[Ocfs2-devel] [PATCH 01/10] ocfs2: Handle workqueue changes

2009-11-09 Thread Sunil Mushran
Mainline commit 52bad64d95bd89e08c49ec5a071fa6dcbe5a1a9c introduced struct delayed_work to separate delayable and non-delayable work. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |2 + Makefile|3 +- configure.in

[Ocfs2-devel] ocfs2 1.6 - second set of patches

2009-11-09 Thread Sunil Mushran
The second set of patches. ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

[Ocfs2-devel] [PATCH 03/10] ocfs2: Add helper task_pid_nr()

2009-11-09 Thread Sunil Mushran
Mainline commit 7af5729474b5b8ad385adadab78d6e723e7655a3 added a helper to obtain the pid number. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile |3 ++- configure.in |5 + kapi-compat/include/task_pid_nr.h | 12

[Ocfs2-devel] [PATCH 04/10] ocfs2: Enable CONFIG_OCFS2_FS_POSIX_ACL

2009-11-09 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/Makefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/Makefile b/fs/ocfs2/Makefile index e997fe4..efa7f57 100644 --- a/fs/ocfs2/Makefile +++ b/fs/ocfs2/Makefile @@ -34,6 +34,8 @@ EXTRA_CFLAGS

[Ocfs2-devel] [PATCH 09/10] ocfs2: Handle missing USHORT_MAX

2009-11-09 Thread Sunil Mushran
Mainline commit 44f564a4bf6ac70f2a84806203045cf515bc9367 USHORT_MAX. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Makefile|3 ++- configure.in|5 + kapi-compat/include/ushortmax.h |6 ++ 3 files changed, 13 insertions

[Ocfs2-devel] [PATCH 07/10] ocfs2: Handle struct f_path in struct file

2009-11-09 Thread Sunil Mushran
Mainline commit 0f7fc9e4d03987fe29f6dd4aa67e4c56eb7ecb05 added struct path into struct file. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Config.make.in |1 + Makefile|3 ++- configure.in|6 ++ fs/ocfs2/Makefile

[Ocfs2-devel] [PATCH 1/1] ocfs2: Refresh documentation

2009-11-02 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- Documentation/filesystems/ocfs2.txt |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/filesystems/ocfs2.txt b/Documentation/filesystems/ocfs2.txt index c2a0871..c58b9f5 100644 --- a/Documentation

Re: [Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED

2009-10-26 Thread Sunil Mushran
Jamie Lokier wrote: It might be better to have a flag FIEMAP_EXTENT_NOT_SHARED. Apps which need to know the data is not shared can't safely check !(flags FIEMAP_EXTENT_SHARED) because of old kernels which don't set the flag. I'm probably not understanding your point. Won't the older kernels

[Ocfs2-devel] [PATCH 1/2] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED

2009-10-21 Thread Sunil Mushran
Patch adds flag FIEMAP_EXTENT_SHARED to denote extents that are shared with other inodes. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- include/linux/fiemap.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/fiemap.h b/include/linux/fiemap.h

[Ocfs2-devel] [PATCH 2/2] ocfs2: Use FIEMAP_EXTENT_SHARED

2009-10-21 Thread Sunil Mushran
Adds FIEMAP_EXTENT_SHARED flag to refcounted extents. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/extent_map.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c index 843db64..cdce5f8 100644 --- a/fs

[Ocfs2-devel] Extend FIEMAP to indicate shared extents

2009-10-21 Thread Sunil Mushran
This adds a FIEMAP extent flag, FIEMAP_EXTENT_SHARED, to indicate extents that are shared by multiple files. The second patch makes use of the same in the OCFS2 file system to show such extents in the reflinked files. Thanks Sunil ___ Ocfs2-devel

Re: [Ocfs2-devel] [Ocfs2-users] FW: Oracle 9204 installation on linux x86-64 on ocfs

2009-10-21 Thread Sunil Mushran
Appears the volumes are not mounted with the datavolume mount option. Refer to the FAQ for more in this. On May 4, 2009, at 7:37 AM, keyur patel keyur.pa...@oracle.com wrote: Hello All, I have installed Oracle Cluster Manager on linux x86-64 nit. I am using ocfs file system for quorum

[Ocfs2-devel] [PATCH] ocfs2: Use FIEMAP_EXTENT_SHARED

2009-10-15 Thread Sunil Mushran
Adds FIEMAP_EXTENT_SHARED flag to refcounted extents. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/extent_map.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/ocfs2/extent_map.c b/fs/ocfs2/extent_map.c index 843db64..cdce5f8 100644 --- a/fs

[Ocfs2-devel] [PATCH] fiemap: Add new extent flag FIEMAP_EXTENT_SHARED

2009-10-15 Thread Sunil Mushran
Patch adds flag FIEMAP_EXTENT_SHARED to denote extents that are shared with other inodes. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- include/linux/fiemap.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/fiemap.h b/include/linux/fiemap.h

Re: [Ocfs2-devel] questions of AST and BAST (was Re: dlm stress test hangs OCFS2)

2009-09-23 Thread Sunil Mushran
/cvsmirror/opendlm/docs/dlmbook_final.pdf Sunil Coly Li wrote: Sunil Mushran Wrote: BAST: [368.807757] (2572,dlm_astd,0):ocfs2_blocking_ast:1025 BAST fired for lockres M085e02, blocking 5, level 3 type Meta [368.807767] (2571,ocfs2dc,0):ocfs2_process_blocked_lock:3839

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-21 Thread Sunil Mushran
lockres-l_action = OCFS2_AST_DOWNCONVERT; 3231 lockres-l_requested = new_level; 3232 lockres_or_flags(lockres, OCFS2_LOCK_BUSY); 3233 return lockres_set_pending(lockres); 3234 } I am trying to understand what you did now :-) Sunil Mushran Wrote: So originally my

Re: [Ocfs2-devel] Is Pacemaker integration ready to go?

2009-09-17 Thread Sunil Mushran
To use pacemaker today, you will need to install sles11. The pacemaker bits are being pushed to ocfs2-tools.git. But the git repo is behind sles11 atm. On Jun 15, 2009, at 8:52 AM, Jonathan jdccde...@gmail.com wrote: I have seen many references online to being able to use OCFS2 with

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-15 Thread Sunil Mushran
):ocfs2_locking_ast:1069 lock M085e02, action 3, unlock 0 Upconvert AST: [369.208048] (2572,dlm_astd,0):ocfs2_locking_ast:1069 lock M085e02, action 2, unlock 0 Coly Li wrote: Sunil Mushran Wrote: The full trace is available here. http

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-14 Thread Sunil Mushran
is consistently 200 usecs (??) after the DOWNCONVERT. Coli, Can you map the pids to the process names. Sunil Coly Li wrote: Sunil Mushran Wrote: Thanks. Can you email me the _full_ trace log. Hi Sunil, Here is the full trace log from boot to shutdown, on both nodes. On node x1, I run

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-11 Thread Sunil Mushran
a bit of tlc. Please re-run with the the following patch. http://oss.oracle.com/~smushran/0001-ocfs2-Patch-to-debug-hang-in-dlmglue-when-running-d.patch Coly Li wrote: Sunil Mushran Wrote: Can you send me the raw trace output. Here is the compressed trace info. Thanks

Re: [Ocfs2-devel] [PATCH] ocfs2: Use buffer IO if we are appending a file.

2009-09-10 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Tao Ma wrote: In ocfs2_file_aio_write, we will prevent direct io if we find that we are appending(changing i_size) and call generic_file_aio_write_nolock. But actually O_DIRECT flag is there and this function will call

Re: [Ocfs2-devel] [PATCH] ocfs2: remove DIR check in ocfs2_link

2009-09-09 Thread Sunil Mushran
Maybe so. But I see no harm leaving the check in. On Sep 9, 2009, at 9:58 AM, Wengang Wang wen.gang.w...@oracle.com wrote: there is check on the inode whether it is a DIR in ocfs2_link(). the same check is done in vfs_link already, so remove it from ocfs2_link(). Signed-off-by: Wengang

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-09 Thread Sunil Mushran
Can you send me the raw trace output. Coly Li wrote: Sunil Mushran Wrote: You will have to trace thru process_blocked_lock() to make sense of this. I try to trace process_blocked_lock(), the result is quite complex. I attach the modified fs/ocfs2 code (ocfs2-trace.tar.bz2

[Ocfs2-devel] [PATCH 1/1] ocfs2: ocfs2_write_begin_nolock() should handle len=0

2009-09-04 Thread Sunil Mushran
Bug introduced by mainline commit e7432675f8ca868a4af365759a8d4c3779a3d922 The bug causes ocfs2_write_begin_nolock() to oops when len=0. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/aops.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ocfs2

Re: [Ocfs2-devel] [PATCH 1/1]ocfs2: add spinlock protection when dealing with lockres-purge.

2009-09-03 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Wengang Wang wrote: when we check/modify lockres-purge, we should with the protection of lockres-spinlock. in dlm_purge_lockres(), the checking/modifying is not with the protectin. this patch fixes it. Signed-off-by: Wengang Wang

Re: [Ocfs2-devel] dlm stress test hangs OCFS2

2009-09-03 Thread Sunil Mushran
You will have to trace thru process_blocked_lock() to make sense of this. Coly Li wrote: Sunil Mushran Wrote: So the thread is removing the lockres from the list (thus making the count 0), and then calling ocfs2_process_blocked_lock() which is adding that lockres back in the list (thus 1

Re: [Ocfs2-devel] [PATCH 2/2] ocfs2: Use MAY_CREATE in ocfs2_permission()

2009-09-02 Thread Sunil Mushran
Joel Becker wrote: ocfs2 has a problem with open(O_CREAT|O_EXCL). Once you've created the file, you can't restart the open(), because O_CREAT|O_EXCL will trigger -EEXIST. The problem is that ocfs2 is catching the signal -permission(), called by may_open(). This happens after -create() has

Re: [Ocfs2-devel] [PATCH] add assertions to stuffs with purge/unused lockres

2009-09-02 Thread Sunil Mushran
How about we narrow down the issue by dumping the lockres? Look in 1.4. We dump the lockres in dlm_purge_lockres(). __dlm_print_one_lock_resource(res); In this case, it appears the user has encountered it more than once. Work with Srini to give them a package with the above. The idea here is to

Re: [Ocfs2-devel] [PATCH] add assertions to stuffs with purge/unused lockres

2009-09-02 Thread Sunil Mushran
It's too intrusive for a debug patch. And big too. Maybe we need this eventually. But for right now, it will be easier if we can narrow down the scope of the issue as quickly as possible. On Sep 2, 2009, at 8:21 PM, Wengang Wang wen.gang.w...@oracle.com wrote: Hi Sunil, Sunil Mushran

Re: [Ocfs2-devel] [PATCH] ocfs2: invalidate dentry if its dentry_lock isn't initialized.

2009-09-01 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Tao Ma wrote: In commit a5a0a630922a2f6a774b6dac19f70cb5abd86bb0, when ocfs2_attch_dentry_lock fails, we call an extra iput and reset dentry-d_fsdata to NULL. This resolve a bug, but it isn't completed and the dentry is still there. When

Re: [Ocfs2-devel] [PATCH] ocfs2/dlm: Wait on lockres instead of erroring cancel requests

2009-08-20 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Goldwyn Rodrigues wrote: In case a downconvert is queued, and a flock receives a signal, BUG_ON(lockres-l_action != OCFS2_AST_INVALID) is triggered because a lock cancel triggers a dlmunlock while an AST is scheduled. To avoid

[Ocfs2-devel] [PATCH 1/1] ocfs2: __ocfs2_abort() should not enable panic for local mounts

2009-08-19 Thread Sunil Mushran
defers the handling to the mount option, errors. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/super.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index b0ee0fd..44a0388 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2

Re: [Ocfs2-devel] mkfs.ocfs2 bug?

2009-08-07 Thread Sunil Mushran
1.4.0 is very old. sles needs to refresh the tools. Peter W. Morreale wrote: Hi all, I had the following happen when playing with adding the -C option to mkfs.ocfs2 commandline. Is this a known issue? Should I file a bug report? Works fine as long as I do not specify a cluster size.

[Ocfs2-devel] [PATCH 1/1] ocfs2: Initialize the cluster we're writing to in a non-sparse extend

2009-08-06 Thread Sunil Mushran
In a non-sparse extend, we correctly allocate (and zero) the clusters between the old_i_size and pos, but we don't zero the portions of the cluster we're writing to outside of pos-len. It handles clustersize pagesize and blocksize pagesize. [Cleaned up by Joel Becker.] Signed-off-by: Sunil

[Ocfs2-devel] Non-sparse write fix -v4

2009-08-06 Thread Sunil Mushran
So the problem with the last patch was that it did not handle blocksize pagesize. On a x86 box, with a 2K/4K file system, it was only initializing the first 2K block. This fixes it. Sunil ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com

[Ocfs2-devel] [PATCH 1/1] ocfs2: Initialize the cluster we're writing to in a non-sparse extend

2009-08-03 Thread Sunil Mushran
In a non-sparse extend, we correctly allocate (and zero) the clusters between the old_i_size and pos, but we don't zero the portions of the cluster we're writing to outside of pos-len. [Cleaned up by Joel Becker.] Signed-off-by: Sunil Mushran sunil.mush...@oracle.com --- fs/ocfs2/aops.c | 54

[Ocfs2-devel] Non sparse extend init issue

2009-08-02 Thread Sunil Mushran
The patch was created against a 1.4 tree. However, it applies cleanly to mainline too. The patch has been lightly tested. I am running fill_verify_holes on a non sparse volume currently. Please review. Sunil ___ Ocfs2-devel mailing list

Re: [Ocfs2-devel] [PATCH] Remove redundant BUG_ON in __dlm_queue_ast

2009-07-31 Thread Sunil Mushran
Can you explain why you think it is redundant? Goldwyn Rodrigues wrote: Remove redundant BUG_ON() Signed-off-by: Goldwyn Rodrigues rgold...@suse.de --- diff --git a/fs/ocfs2/dlm/dlmast.c b/fs/ocfs2/dlm/dlmast.c index d07ddbe..81eff8e 100644 --- a/fs/ocfs2/dlm/dlmast.c +++

Re: [Ocfs2-devel] [PATCH] Remove redundant BUG_ON in __dlm_queue_ast

2009-07-31 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Goldwyn Rodrigues wrote: Remove redundant BUG_ON() Signed-off-by: Goldwyn Rodrigues rgold...@suse.de --- diff --git a/fs/ocfs2/dlm/dlmast.c b/fs/ocfs2/dlm/dlmast.c index d07ddbe..81eff8e 100644 --- a/fs/ocfs2/dlm/dlmast.c +++ b

Re: [Ocfs2-devel] [PATCH 1/1] ocfs2: adds mlogs to aops.c -V2

2009-07-21 Thread Sunil Mushran
Wengang, Idea is to print stuff that will be useful. Instead of printing all args, you can always prepend a 3 char code... flg=0x%x to identify the args that you are printing. Remember the printk buffer is limited. Thanks for taking on this task. Sunil Wengang Wang wrote: Hi Joel, Joel

Re: [Ocfs2-devel] Quota support for ocfs2-tools

2009-07-17 Thread Sunil Mushran
Thanks Jan. It has been pushed to the quotas-support branch. We'll start the review/testing process. Jan Kara wrote: Hello Sunil, attached is a patch which implements full quota support for ocfs2 tools. It's based against ocfs2-tools git's master branch. Would you please consider

Re: [Ocfs2-devel] Initialize count in aio_write before generic_write_checks

2009-07-13 Thread Sunil Mushran
Goldwyn Rodrigues wrote: generic_write_checks() expects count to be initialized to the size of the write. Writes to files open with O_DIRECT|O_LARGEFILE write 0 bytes because count in uninitialized. Signed-off-by: Goldwyn Rodrigues rgold...@suse.de Signed-off-by: Sunil Mushran

Re: [Ocfs2-devel] [PATCH 1/1] a fix of logging return value.

2009-07-10 Thread Sunil Mushran
Tao Ma wrote: Hi wengang, Wengang Wang wrote: Sunil, in the src, I see both mlog(ML_ERROR...)(finally printk(KERN_ERR...)) and ocfs2_error()(finally printk(KERN_CRIT...). could you tell me in what case one should be used? mlog(ML_ERROR...) only print errors. But ocfs2_error does other

Re: [Ocfs2-devel] [PATCH 1/1] a fix of logging return value.

2009-07-09 Thread Sunil Mushran
sob Hi Wengang, functions is aops.c are missing mlogs. Do you have the bandwidth to help out? On Jul 9, 2009, at 10:26 PM, Wengang Wang wen.gang.w...@oracle.com wrote: in ocfs2_file_aio_write(), log_exit() could don't log the value which is really returned. this patch fixes it.

Re: [Ocfs2-devel] lvb length issue [was Re: [ocfs2-tools-devel] question of ocfs2_controld (Jun 27)]

2009-07-07 Thread Sunil Mushran
David Teigland wrote: Yes, the kernel dlm api allows a variable lvb size, but the user dlm api fixes it at 32. Do you need to actually use a 64 byte lvb from userspace? Or do you just need to create the locksapce with a 64 byte lvb? We could add a flag to work around the later fairly

Re: [Ocfs2-devel] [PATCH 1/1] ocfs2-devel: trivial fix for s/migrate/migration/ in dlmrecovery.c, line 1121

2009-07-07 Thread Sunil Mushran
Signed-off-by: Sunil Mushran sunil.mush...@oracle.com Jeff Liu wrote: in dlmrecovery.c:1121, replace 'migrate' to 'migration' to keep the consistency by comparing to other lines with the similar log info in the same file. Signed-off-by: Jeff Liu jeff@oracle.com --- fs/ocfs2/dlm

Re: [Ocfs2-devel] [PATCH 5/5] ocfs2: Disable orphan scanning for local and hard-ro mounts

2009-07-07 Thread Sunil Mushran
Jeff Mahoney wrote: There's a problem with this patch that I ran into while testing 2.6.31-rc2. ocfs2_orphan_scan_stop expects that ocfs2_orphan_scan_init was called. If the mount fails for any reason, ocfs2_dismount_volume calls ocfs2_orphan_scan_stop. The thing is that ocfs2_dismount_volume

Re: [Ocfs2-devel] [PATCH 5/5] ocfs2: Disable orphan scanning for local and hard-ro mounts

2009-07-07 Thread Sunil Mushran
Jeff Mahoney wrote: Yup, you're right. Fixed version attached. Signed-off-by: Sunil Mushran sunil.mush...@oracle.com ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com http://oss.oracle.com/mailman/listinfo/ocfs2-devel

Re: [Ocfs2-devel] mounting a snapshot for backup.

2009-07-04 Thread Sunil Mushran
Tools is enough. It supports all existing versions of the kernel fs. On Jul 4, 2009, at 6:10 AM, syla...@aim.com wrote: Hi, Thanks :) BTW, Do I need to upgrade the kernel module too, or just the ocfs2- tools package? If I need to upgrade the module too ... I am having trouble compiling

Re: [Ocfs2-devel] [PATCH 1/1] [ocfs2-devel] NET_MAX_PAYLOAD_BYTES typo?

2009-07-02 Thread Sunil Mushran
TaoMa wrote: I've read fs/ocfs2/dlm/dlmcommon.h to study the structure of dlm_migratable_lockres. However, I may find a typo for the DLM_MIG_LOCKRES_MAX_LEN, the NET_MAX_PAYLOAD_BYTES should be O2NET_MAX_PAYLOAD_BYTES, I think. In comments, the sizeof(net_msg) should be sizeof(o2net_msg) by

<    1   2   3   4   5   6   7   8   9   10   >