penny williams | 18 Jun 2013 01:23
Picon

attention

Attention Please!!!

Contact Mrs Donna Siford The US Customs office New York City for your 
$950,000.00 USD Compensation Funds from Benin Government & the IMF.

Contact the US Customs Mrs.Donna Siford with your full 
info Name & Address, Here her email address: mrsdnnasiford <at> yahoo.gr, contact 
her now for your package.

Thanks,
Mrs.Penny B Williams
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

penny williams | 18 Jun 2013 02:40
Picon

attention

Attention Please!!!

Contact Mrs Donna Siford The US Customs office New York City for your 
$950,000.00 USD Compensation Funds from Benin Government & the IMF.

Contact the US Customs Mrs.Donna Siford with your full 
info Name & Address, Here her email address: mrsdnnasiford <at> yahoo.gr, contact 
her now for your package.

Thanks,
Mrs.Penny B Williams
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

shencanquan | 17 Jun 2013 16:48
Favicon

[PATCH] ocfs2: llseek need to inode cluster lock and unlock for update the inode size in SEEK_END.

We found that llseek has a bug when in SEEK_END.  it need to add the 
inode lock and unlock.
This bug can be reproduce the following scenario:
On one nodeA, open the file and then write some data to file and close 
the file .
On another nodeB , open the file and llseek the end of file . the 
position of file is old.

Signed-off-by: jensen <shencanquan <at> huawei.com>
---
  file.c |    7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/file.c b/file.c
index ff54014..4ee7c80 100644
--- a/file.c
+++ b/file.c
 <at>  <at>  -2626,6 +2626,13  <at>  <at>  static loff_t ocfs2_file_llseek(struct file 
*file, loff_t offset, int whence)
      case SEEK_SET:
          break;
      case SEEK_END:
+        /*need to inode lock and unlock for update the inode size.*/
+        ret = ocfs2_inode_lock(inode, NULL, 0);
+        if (ret < 0) {
+            mlog_errno(ret);
+            goto out;
+        }
+        ocfs2_inode_unlock(inode, 0);
          offset += inode->i_size;
(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:29

[PATCH 24/24] nilfs2: introduce option of using dynamic debugging

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 24/24] nilfs2: introduce option of using dynamic debugging

This patch implements opportunity of dynamic debugging in NILFS2 driver.
It introduces CONFIG_NILFS2_USE_PR_DEBUG kernel configuration
option. Enabling of this option results in using of pr_debug()
instead of printk() and print_hex_dump_bytes() instead of
print_hex_dump(). If CONFIG_NILFS2_USE_PR_DEBUG is not set then
debugging messages are selected for printing in system log by means of
comparing of requested flags and DBG_MASK's flags set. Otherwise, the
behaviour of of pr_debug()/print_hex_dump_bytes()s are controlled via
writing to a control file in the 'debugfs' filesystem.

If CONFIG_NILFS2_USE_PR_DEBUG option is not set then it is used
printk()/print_hex_dump() for printing debugging messages in
system log.

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/Kconfig |   22 ++++++++++++++++++++++
 fs/nilfs2/debug.h |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig
index 451a3a2..502419a 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
 <at>  <at>  -36,6 +36,24  <at>  <at>  config NILFS2_DEBUG

(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:24

[PATCH 14/24] nilfs2: introduce buffer management subsystem debugging output option

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 14/24] nilfs2: introduce buffer management subsystem debugging output option

This patch adds subsystem's flags for page.c module.
Flags for these modules are grouped by
CONFIG_NILFS2_DEBUG_BUFFER_MANAGEMENT kernel configuration option.
This kernel configuration option enables (or disables) debugging
output from of all above-mentioned modules.

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/Kconfig |    6 ++++++
 fs/nilfs2/debug.h |   10 ++++++++++
 2 files changed, 16 insertions(+)

diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig
index b40fd85..d6299c6 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
 <at>  <at>  -86,6 +86,12  <at>  <at>  config NILFS2_DEBUG_BLOCK_MAPPING
 	  This option enables debugging output in alloc.c, bmap.c, btnode.c,
 	  btree.c, direct.c modules.

+config NILFS2_DEBUG_BUFFER_MANAGEMENT
+	bool "Enable buffer/page management subsystem debugging output"
+	default n
+	help
+	  This option enables debugging output in page.c module.
+
(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:23

[PATCH 07/24] nilfs2: implement segments subsystem debugging output

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 07/24] nilfs2: implement segments subsystem debugging output

This patch adds debugging output by means of nilfs2_debug() method
into modules that are grouped by segments subsystem debugging output
option (CONFIG_NILFS2_DEBUG_SEGMENTS_SUBSYSTEM).

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/segbuf.c  |   30 +++++++
 fs/nilfs2/segment.c |  247 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 274 insertions(+), 3 deletions(-)

diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
index dc9a913..6ee75b1 100644
--- a/fs/nilfs2/segbuf.c
+++ b/fs/nilfs2/segbuf.c
 <at>  <at>  -73,6 +73,10  <at>  <at>  void nilfs_segbuf_free(struct nilfs_segment_buffer *segbuf)
 void nilfs_segbuf_map(struct nilfs_segment_buffer *segbuf, __u64 segnum,
 		     unsigned long offset, struct the_nilfs *nilfs)
 {
+	nilfs2_debug(DBG_SEGBUF,
+			"segbuf %p, segnum %llu, offset %lu, nilfs %p\n",
+			segbuf, segnum, offset, nilfs);
+
 	segbuf->sb_segnum = segnum;
 	nilfs_get_segment_range(nilfs, segnum, &segbuf->sb_fseg_start,
 				&segbuf->sb_fseg_end);
 <at>  <at>  -90,6 +94,10  <at>  <at>  void nilfs_segbuf_map(struct nilfs_segment_buffer *segbuf, __u64 segnum,
(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:22

[PATCH 02/24] nilfs2: introduce base subsystem debugging output option

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 02/24] nilfs2: introduce base subsystem debugging output option

This patch adds subsystem's flags for super.c, the_nilfs.c, namei.c,
ioctl.c, inode.c, file.c, dir.c modules. Flags for these modules are
grouped by CONFIG_NILFS2_DEBUG_BASE_OPERATIONS kernel configuration
option. This kernel configuration option enables (or disables)
debugging output from of all above-mentioned modules.

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/Kconfig |   23 +++++++++++++++++++++++
 fs/nilfs2/debug.h |   21 ++++++++++++++++++++-
 2 files changed, 43 insertions(+), 1 deletion(-)

diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig
index a379d8e..d886e15 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
 <at>  <at>  -34,4 +34,27  <at>  <at>  config NILFS2_DEBUG
 	  written to the system log.  Under normal circumstances, this
 	  results in very little overhead.

+if NILFS2_DEBUG
+
+config NILFS2_DEBUG_SUBSYSTEMS
+	bool "Enable output from subsystems"
+	depends on NILFS2_DEBUG
+	default n
(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:25

[PATCH 15/24] nilfs2: implement buffer management subsystem debugging output

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 15/24] nilfs2: implement buffer management subsystem debugging output

This patch adds debugging output by means of nilfs2_debug() method
into modules that are grouped by buffer management subsystem debugging
output option (CONFIG_NILFS2_DEBUG_BUFFER_MANAGEMENT).

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/page.c |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/fs/nilfs2/page.c b/fs/nilfs2/page.c
index 0ba6798..330f172 100644
--- a/fs/nilfs2/page.c
+++ b/fs/nilfs2/page.c
 <at>  <at>  -47,6 +47,12  <at>  <at>  __nilfs_get_page_block(struct page *page, unsigned long block, pgoff_t index,
 	unsigned long first_block;
 	struct buffer_head *bh;

+	nilfs2_debug(DBG_PAGE,
+			"i_ino %lu, block %lu, index %lu, "
+			"blkbits %d, b_state %#lx\n",
+			page->mapping->host->i_ino,
+			block, index, blkbits, b_state);
+
 	if (!page_has_buffers(page))
 		create_empty_buffers(page, 1 << blkbits, b_state);

(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:24

[PATCH 13/24] nilfs2: implement block mapping subsystem debugging output

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 13/24] nilfs2: implement block mapping subsystem debugging output

This patch adds debugging output by means of nilfs2_debug() method
into modules that are grouped by block mapping subsystem debugging output
option (CONFIG_NILFS2_DEBUG_BLOCK_MAPPING).

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/alloc.c  |   15 ++++
 fs/nilfs2/bmap.c   |   81 ++++++++++++++++++++-
 fs/nilfs2/btnode.c |   28 +++++++
 fs/nilfs2/btree.c  |  205 +++++++++++++++++++++++++++++++++++++++++++++++++++-
 fs/nilfs2/direct.c |   51 +++++++++++++
 5 files changed, 375 insertions(+), 5 deletions(-)

diff --git a/fs/nilfs2/alloc.c b/fs/nilfs2/alloc.c
index eed4d7b..2ce1fd4 100644
--- a/fs/nilfs2/alloc.c
+++ b/fs/nilfs2/alloc.c
 <at>  <at>  -62,6 +62,10  <at>  <at>  int nilfs_palloc_init_blockgroup(struct inode *inode, unsigned entry_size)
 {
 	struct nilfs_mdt_info *mi = NILFS_MDT(inode);

+	nilfs2_debug(DBG_ALLOC,
+			"i_ino %lu, entry_size %u\n",
+			inode->i_ino, entry_size);
+
 	mi->mi_bgl = kmalloc(sizeof(*mi->mi_bgl), GFP_NOFS);
(Continue reading)

Vyacheslav Dubeyko | 17 Jun 2013 14:24

[PATCH 12/24] nilfs2: introduce block mapping subsystem debugging output option

From: Vyacheslav Dubeyko <slava <at> dubeyko.com>
Subject: [PATCH 12/24] nilfs2: introduce block mapping subsystem debugging output option

This patch adds subsystem's flags for alloc.c, bmap.c, btnode.c,
btree.c, direct.c modules. Flags for these modules are grouped by
CONFIG_NILFS2_DEBUG_BLOCK_MAPPING kernel configuration option.
This kernel configuration option enables (or disables) debugging
output from of all above-mentioned modules.

Signed-off-by: Vyacheslav Dubeyko <slava <at> dubeyko.com>
CC: Ryusuke Konishi <konishi.ryusuke <at> lab.ntt.co.jp>
---
 fs/nilfs2/Kconfig |    7 +++++++
 fs/nilfs2/debug.h |   15 +++++++++++++++
 2 files changed, 22 insertions(+)

diff --git a/fs/nilfs2/Kconfig b/fs/nilfs2/Kconfig
index 5eb5140..b40fd85 100644
--- a/fs/nilfs2/Kconfig
+++ b/fs/nilfs2/Kconfig
 <at>  <at>  -79,6 +79,13  <at>  <at>  config NILFS2_DEBUG_RECOVERY_SUBSYSTEM
 	help
 	  This option enables debugging output in recovery.c module.

+config NILFS2_DEBUG_BLOCK_MAPPING
+	bool "Enable block mapping subsystem debugging output"
+	default n
+	help
+	  This option enables debugging output in alloc.c, bmap.c, btnode.c,
+	  btree.c, direct.c modules.
(Continue reading)


Gmane