linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH: Change in-kernel afs client filesystem name to 'kafs'
@ 2006-06-24  0:41 Troy Benjegerdes
  2006-06-24 12:16 ` Arjan van de Ven
  2006-06-24 13:37 ` Christoph Hellwig
  0 siblings, 2 replies; 10+ messages in thread
From: Troy Benjegerdes @ 2006-06-24  0:41 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 414 bytes --]

This patch changes the in-kernel AFS client filesystem name to 'kafs',
as well as allowing the AFS cache manager port to be set as a module
parameter. This is usefull for having a system boot with the root
filesystem on afs with the kernel AFS client, while still having the
option of loading the OpenAFS kernel module for use as a read-write
filesystem later.

Signed-off-by: Troy Benjegerdes <hozer@hozed.org>



[-- Attachment #2: kafs.patch --]
[-- Type: text/plain, Size: 2480 bytes --]

# HG changeset patch
# User hozer@minbar-g5.scl.ameslab.gov
# Node ID f2b66f75ac858c7eacf681c73ddad3f0058df480
# Parent  28e3d8204fdbfc0f2bef6dd513ab79184047a1ab
Change mount name to 'kafs' and allow setting the cache manager port

diff -r 28e3d8204fdb -r f2b66f75ac85 fs/afs/main.c
--- a/fs/afs/main.c	Fri Jun 23 22:47:27 2006 +0700
+++ b/fs/afs/main.c	Fri Jun 23 18:11:35 2006 -0500
@@ -42,6 +42,11 @@ module_param(rootcell, charp, 0);
 module_param(rootcell, charp, 0);
 MODULE_PARM_DESC(rootcell, "root AFS cell name and VL server IP addr list");
 
+static uint rxrpc_port = 7001;
+
+module_param(rxrpc_port, uint, 0);
+MODULE_PARM_DESC(rxrpc_port, "kAFS cache manager port (default 7001)");
+
 
 static struct rxrpc_peer_ops afs_peer_ops = {
 	.adding		= afs_adding_peer,
@@ -57,7 +62,7 @@ static struct cachefs_netfs_operations a
 };
 
 struct cachefs_netfs afs_cache_netfs = {
-	.name			= "afs",
+	.name			= "kafs",
 	.version		= 0,
 	.ops			= &afs_cache_ops,
 };
@@ -71,7 +76,8 @@ static int __init afs_init(void)
 {
 	int loop, ret;
 
-	printk(KERN_INFO "kAFS: Red Hat AFS client v0.1 registering.\n");
+	printk(KERN_INFO "kAFS: Red Hat AFS client v0.1 registering, using port %d.\n",
+			rxrpc_port);
 
 	/* initialise the callback hash table */
 	spin_lock_init(&afs_cb_hash_lock);
@@ -113,7 +119,7 @@ static int __init afs_init(void)
 		goto error_kafstimod;
 
 	/* create the RxRPC transport */
-	ret = rxrpc_create_transport(7001, &afs_transport);
+	ret = rxrpc_create_transport(rxrpc_port, &afs_transport);
 	if (ret < 0)
 		goto error_kafsasyncd;
 
diff -r 28e3d8204fdb -r f2b66f75ac85 fs/afs/mntpt.c
--- a/fs/afs/mntpt.c	Fri Jun 23 22:47:27 2006 +0700
+++ b/fs/afs/mntpt.c	Fri Jun 23 18:11:35 2006 -0500
@@ -203,7 +203,7 @@ static struct vfsmount *afs_mntpt_do_aut
 
 	/* try and do the mount */
 	kdebug("--- attempting mount %s -o %s ---", devname, options);
-	mnt = do_kern_mount("afs", 0, devname, options);
+	mnt = do_kern_mount("kafs", 0, devname, options);
 	kdebug("--- mount result %p ---", mnt);
 
 	free_page((unsigned long) devname);
diff -r 28e3d8204fdb -r f2b66f75ac85 fs/afs/super.c
--- a/fs/afs/super.c	Fri Jun 23 22:47:27 2006 +0700
+++ b/fs/afs/super.c	Fri Jun 23 18:11:35 2006 -0500
@@ -50,7 +50,7 @@ static void afs_destroy_inode(struct ino
 
 static struct file_system_type afs_fs_type = {
 	.owner		= THIS_MODULE,
-	.name		= "afs",
+	.name		= "kafs",
 	.get_sb		= afs_get_sb,
 	.kill_sb	= kill_anon_super,
 	.fs_flags	= FS_BINARY_MOUNTDATA,

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

end of thread, other threads:[~2006-06-26  6:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-24  0:41 PATCH: Change in-kernel afs client filesystem name to 'kafs' Troy Benjegerdes
2006-06-24 12:16 ` Arjan van de Ven
2006-06-24 18:01   ` Troy Benjegerdes
2006-06-24 18:09     ` Christoph Hellwig
2006-06-24 18:27       ` Troy Benjegerdes
2006-06-24 21:23         ` Alan Cox
2006-06-26  6:24   ` Troy Benjegerdes
2006-06-24 13:37 ` Christoph Hellwig
2006-06-24 18:19   ` Troy Benjegerdes
2006-06-25  3:19     ` Josh Boyer

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).