linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL -mm] Unionfs updates
@ 2007-05-05 20:18 Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 1/3] Unionfs: Accept MS_SILENT during remount Josef 'Jeff' Sipek
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Josef 'Jeff' Sipek @ 2007-05-05 20:18 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, linux-fsdevel

The following patches (also available though the git tree) fix few small
bugs in Unionfs.

You can pull from 'master' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jsipek/unionfs.git

to receive the following:

Adrian Brunyate (2):
      Unionfs: Accept MS_SILENT during remount
      Unionfs: Check remount options for being NULL

Adrian Bunk (1):
      fix unionfs compilation

 fs/unionfs/super.c |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

Josef 'Jeff' Sipek.

jsipek@cs.sunysb.edu



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/3] Unionfs: Accept MS_SILENT during remount
  2007-05-05 20:18 [GIT PULL -mm] Unionfs updates Josef 'Jeff' Sipek
@ 2007-05-05 20:18 ` Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 2/3] Unionfs: Check remount options for being NULL Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 3/3] [PATCH] fix unionfs compilation Josef 'Jeff' Sipek
  2 siblings, 0 replies; 4+ messages in thread
From: Josef 'Jeff' Sipek @ 2007-05-05 20:18 UTC (permalink / raw)
  To: akpm
  Cc: linux-kernel, linux-fsdevel, Adrian Brunyate,
	Josef 'Jeff' Sipek

From: Adrian Brunyate <abrunyate@yahoo.com>

[jsipek: whitespace cleanup]
Signed-off-by: Adrian Brunyate <abrunyate@yahoo.com>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
---
 fs/unionfs/super.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index e6a6cc1..ee12d03 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -425,11 +425,12 @@ static int unionfs_remount_fs(struct super_block *sb, int *flags,
 	unionfs_write_lock(sb);
 
 	/*
-	 * The VFS will take care of "ro" and "rw" flags, so anything else
-	 * is an error.  So we need to check if any other flags may have
-	 * been passed (none are allowed/supported as of now).
+	 * The VFS will take care of "ro" and "rw" flags, and we can safely
+	 * ignore MS_SILENT, but anything else left over is an error.  So we
+	 * need to check if any other flags may have been passed (none are
+	 * allowed/supported as of now).
 	 */
-	if ((*flags & ~MS_RDONLY) != 0) {
+	if ((*flags & ~(MS_RDONLY | MS_SILENT)) != 0) {
 		printk(KERN_WARNING
 		       "unionfs: remount flags 0x%x unsupported\n", *flags);
 		err = -EINVAL;
@@ -731,7 +732,8 @@ out_no_change:
 	i = atomic_inc_return(&UNIONFS_SB(sb)->generation);
 	atomic_set(&UNIONFS_D(sb->s_root)->generation, i);
 	atomic_set(&UNIONFS_I(sb->s_root->d_inode)->generation, i);
-	printk("unionfs: new generation number %d\n", i);
+	if (!(*flags & MS_SILENT)) 
+		printk("unionfs: new generation number %d\n", i);
 	err = 0;		/* reset to success */
 
 	/*
-- 
1.5.0.3.1043.g4342


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] Unionfs: Check remount options for being NULL
  2007-05-05 20:18 [GIT PULL -mm] Unionfs updates Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 1/3] Unionfs: Accept MS_SILENT during remount Josef 'Jeff' Sipek
@ 2007-05-05 20:18 ` Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 3/3] [PATCH] fix unionfs compilation Josef 'Jeff' Sipek
  2 siblings, 0 replies; 4+ messages in thread
From: Josef 'Jeff' Sipek @ 2007-05-05 20:18 UTC (permalink / raw)
  To: akpm
  Cc: linux-kernel, linux-fsdevel, Adrian Brunyate,
	Josef 'Jeff' Sipek

From: Adrian Brunyate <abrunyate@yahoo.com>

Signed-off-by: Adrian Brunyate <abrunyate@yahoo.com>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
---
 fs/unionfs/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index ee12d03..02c0cc8 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -442,7 +442,7 @@ static int unionfs_remount_fs(struct super_block *sb, int *flags,
 	 * the union to a "ro" or "rw" and the VFS took care of it.  So
 	 * nothing to do and we're done.
 	 */
-	if (options[0] == '\0')
+	if (!options || options[0] == '\0')
 		goto out_error;
 
 	/*
-- 
1.5.0.3.1043.g4342


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] [PATCH] fix unionfs compilation
  2007-05-05 20:18 [GIT PULL -mm] Unionfs updates Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 1/3] Unionfs: Accept MS_SILENT during remount Josef 'Jeff' Sipek
  2007-05-05 20:18 ` [PATCH 2/3] Unionfs: Check remount options for being NULL Josef 'Jeff' Sipek
@ 2007-05-05 20:18 ` Josef 'Jeff' Sipek
  2 siblings, 0 replies; 4+ messages in thread
From: Josef 'Jeff' Sipek @ 2007-05-05 20:18 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, linux-fsdevel, Adrian Bunk,
	Josef 'Jeff' Sipek

From: Adrian Bunk <bunk@stusta.de>

On Sat, May 05, 2007 at 01:49:55AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.21-rc7-mm2:
>...
>  git-unionfs.patch
>...
>  git trees
>...

<--  snip  -->

...
  CC      fs/unionfs/super.o
/home/bunk/linux/kernel-2.6/linux-2.6.21-mm1/fs/unionfs/super.c: In function ‘init_once’:
/home/bunk/linux/kernel-2.6/linux-2.6.21-mm1/fs/unionfs/super.c:822: error: ‘SLAB_CTOR_VERIFY’ undeclared (first use in this function)
/home/bunk/linux/kernel-2.6/linux-2.6.21-mm1/fs/unionfs/super.c:822: error: (Each undeclared identifier is reported only once
/home/bunk/linux/kernel-2.6/linux-2.6.21-mm1/fs/unionfs/super.c:822: error: for each function it appears in.)
make[3]: *** [fs/unionfs/super.o] Error 1

<--  snip  -->

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
---
 fs/unionfs/super.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c
index 02c0cc8..af5a1c5 100644
--- a/fs/unionfs/super.c
+++ b/fs/unionfs/super.c
@@ -821,8 +821,7 @@ static void init_once(void *v, struct kmem_cache * cachep, unsigned long flags)
 {
 	struct unionfs_inode_info *i = v;
 
-	if ((flags & (SLAB_CTOR_VERIFY | SLAB_CTOR_CONSTRUCTOR)) ==
-	    SLAB_CTOR_CONSTRUCTOR)
+	if (flags & SLAB_CTOR_CONSTRUCTOR)
 		inode_init_once(&i->vfs_inode);
 }
 
-- 
1.5.0.3.1043.g4342

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-05 20:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-05 20:18 [GIT PULL -mm] Unionfs updates Josef 'Jeff' Sipek
2007-05-05 20:18 ` [PATCH 1/3] Unionfs: Accept MS_SILENT during remount Josef 'Jeff' Sipek
2007-05-05 20:18 ` [PATCH 2/3] Unionfs: Check remount options for being NULL Josef 'Jeff' Sipek
2007-05-05 20:18 ` [PATCH 3/3] [PATCH] fix unionfs compilation Josef 'Jeff' Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).