Re: [Ocfs2-devel] [Ocfs2-tools-devel] fsck.ocfs2 does not write back block data corrected with hamming code

2017-09-06 Thread Larry Chen
combined with     using context(like read-only mode). Thanks. Larry Chen On 08/29/2017 12:52 PM, Gang He wrote: Hello Guys, This is a little tricky problem. When the user modifies a character in a meta-block, the hamming code can repair this block when reading this block in fsck tool, so fsck

[Ocfs2-devel] a puzzle about is_global_system_inode function

2017-10-24 Thread Larry Chen
Larry Chen ___ Ocfs2-devel mailing list Ocfs2-devel@oss.oracle.com https://oss.oracle.com/mailman/listinfo/ocfs2-devel

Re: [Ocfs2-devel] a puzzle about is_global_system_inode function

2017-10-24 Thread Larry Chen
On 10/24/2017 7:04 PM, Joseph Qi wrote: > GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inode > allocation, you can refer to ocfs2-tools for details. So it won't be used as an allocator after mkfs.ocfs2.  Is that true?? Thanks, Larry Chen > > Thanks, > Joseph > &

Re: [Ocfs2-devel] Fwd: RES: [Ocfs2-users] How do I resize Ocfs2 filesystem using Pacemaker stack?

2017-12-06 Thread Larry Chen
Hello Carlos, Could you please provide the command line used to format the partition? I found this prompt comes from code of o2cb stack. Unable to access cluster service while closing device "/dev/mapper/storage1-part2" Thanks, Larry >> Hello Gang, >> Tank you for your fast answer. >> >>>

[Ocfs2-devel] activating discontiguous inode block failed

2017-10-30 Thread Larry Chen
} -t inode  (activate_discontig_bg.sh) f_activate_discontig ${CONTIG_BG_FILLER} (fillup_contig_bg.sh) f_fillup_ibg $cur_bitmap_total -gt $bitmap_total***==> In the "sorry" case, they are both equal to 4096 Does everyone have any idea? I'm still looking into this excepti

Re: [Ocfs2-devel] a puzzle about is_global_system_inode function

2017-10-24 Thread Larry Chen
Hi changwei, alex, and Joseph, Really appreciate your help. Thanks Larry Chen On 10/24/2017 9:16 PM, ge changwei wrote: > > On 24/10/2017 8:23 PM, Larry Chen wrote: >> On 10/24/2017 7:04 PM, Joseph Qi wrote: >>> GLOBAL_INODE_ALLOC_SYSTEM_INODE is used for system files inod

Re: [Ocfs2-devel] [PATCH] fix a compiling warning

2018-05-06 Thread Larry Chen
inode_locked' is still zero. > > thanks, > Jun > > On 2018/5/6 17:49, Larry Chen wrote: >> The variable had_lock might be used uninitialized. >> >> Signed-off-by: Larry Chen <lc...@suse.com> >> --- >> fs/ocfs2/file.c | 2 +- >> 1 file changed,

[Ocfs2-devel] [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-09 Thread Larry Chen
. process 1 process 2 ocfs2_inode_lock_tracker(ex=0) <== ocfs2_inode_lock_tracker(ex=1) ocfs2_inode_lock_tracker(ex=1) Signed-off-by: Larry Chen <lc...@suse.com> Reviewed-by: Gang He <g...@suse.com> --- fs/ocfs2/

Re: [Ocfs2-devel] OCFS2 BUG with 2 different kernels

2018-05-11 Thread Larry Chen
(hopefully) trigger on your side as well. I don't > know the conditions under which this will occur, unfortunately. > > Regards, > > Daniel > > > -Original Message- > From: Larry Chen [mailto:lc...@suse.com] > Sent: Donnerstag, 12. April 2018 11:20 > To: Danie

Re: [Ocfs2-devel] [PATCH] ocfs2: ocfs2_inode_lock_tracker does not distinguish lock level

2018-05-10 Thread Larry Chen
Hello Andrew, On 05/11/2018 05:49 AM, Andrew Morton wrote: > On Thu, 10 May 2018 13:32:30 +0800 Larry Chen <lc...@suse.com> wrote: > >> ocfs2_inode_lock_tracker as a variant of ocfs2_inode_lock, >> is used to prevent deadlock due to recursive lock acquisition. >

Re: [Ocfs2-devel] OCFS2 BUG with 2 different kernels

2018-04-11 Thread Larry Chen
Hi Daniel, If you execute mkfs and mount that fs on only one node, and then share the mount to several namespaces, will the issue recur? And could you please show us how you shared the mount to other namespaces? Thanks Larry On 04/11/2018 05:45 PM, Daniel Sobe wrote: > > Hi, > > having used

Re: [Ocfs2-devel] OCFS2 BUG with 2 different kernels

2018-04-11 Thread Larry Chen
On 04/11/2018 07:17 PM, Daniel Sobe wrote: > Hi Larry, > > this is what I was doing. The 2nd node, while being "declared" in the > cluster.conf, does not exist yet, and thus everything was happening on one > node only. > > I do not know in detail how LXC does the mount sharing, but I assume it

Re: [Ocfs2-devel] OCFS2 BUG with 2 different kernels

2018-04-11 Thread Larry Chen
6 > > lxc.mount.entry = /storage/ocfs2/swswnone bind 0 0 > > lxc.cgroup.memory.limit_in_bytes = 240G > lxc.cgroup.memory.memsw.limit_in_bytes = 240G > > lxc.include = /usr/share/lxc/config/common.conf.d/00-lxcfs.conf > > > > > > > -Original Mess

Re: [Ocfs2-devel] [PATCH] ocfs2: don't evaluate buffer head to NULL managed by caller

2018-03-28 Thread Larry Chen
Hi Changwei, I found that your patch call put_bh function only if new_bh==1, Will it cause buffer_head use count inconsistent?? Thanks Larry On 03/29/2018 10:06 AM, Changwei Ge wrote: > ocfs2_read_blocks() is used to read several blocks from disk. > Currently, the input argument *bhs* can be

Re: [Ocfs2-devel] [PATCH] ocfs2: don't evaluate buffer head to NULL managed by caller

2018-03-29 Thread Larry Chen
Hi Changwei, On 03/29/2018 05:50 PM, piaojun wrote: > Hi Changwei, > > On 2018/3/29 10:06, Changwei Ge wrote: >> ocfs2_read_blocks() is used to read several blocks from disk. >> Currently, the input argument *bhs* can be NULL or NOT. It depends on >> the caller's behavior. If the function fails

Re: [Ocfs2-devel] [PATCH] Correct a comment error

2018-03-01 Thread Larry Chen
8/3/1 20:58, piaojun wrote: >>> Hi Larry, >>> >>> There is the same mistake in ocfs2_reflink_inodes_lock(), could you help >>> fixing them all? >>> >>> thanks, >>> Jun >>> >>> On 2018/2/28 18:17, Larry Chen wrote: >>>> The func

[Ocfs2-devel] [PATCH] Correct a comment error

2018-02-28 Thread Larry Chen
The function ocfs2_double_lock tries to lock the inode with lower blockid first, not lockid. Signed-off-by: Larry Chen <lc...@suse.com> --- fs/ocfs2/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c index c801eddc4bf3..30d454