Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/ericvh/v9fs

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
  9p: v9fs_vfs_rename incorrect clunk order
  9p: fix memleak in fs/9p/v9fs.c
  9p: add virtio transport
  • Loading branch information
Linus Torvalds committed Oct 23, 2007
2 parents 1176360 + 22150c4 commit 01e7ae8
Show file tree
Hide file tree
Showing 7 changed files with 382 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Documentation/filesystems/9p.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ OPTIONS

trans=name select an alternative transport. Valid options are
currently:
unix - specifying a named pipe mount point
tcp - specifying a normal TCP/IP connection
fd - used passed file descriptors for connection
unix - specifying a named pipe mount point
tcp - specifying a normal TCP/IP connection
fd - used passed file descriptors for connection
(see rfdno and wfdno)
virtio - connect to the next virtio channel available
(from lguest or KVM with trans_virtio module)

uname=name user name to attempt mount as on the remote server. The
server may override or ignore this value. Certain user
Expand Down
1 change: 1 addition & 0 deletions fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static void v9fs_parse_options(struct v9fs_session_info *v9ses)
if (*e != '\0')
v9ses->uid = ~0;
}
kfree(s);
break;

default:
Expand Down
4 changes: 2 additions & 2 deletions fs/9p/vfs_inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,10 +687,10 @@ v9fs_vfs_rename(struct inode *old_dir, struct dentry *old_dentry,
retval = p9_client_wstat(oldfid, &wstat);

clunk_newdir:
p9_client_clunk(olddirfid);
p9_client_clunk(newdirfid);

clunk_olddir:
p9_client_clunk(newdirfid);
p9_client_clunk(olddirfid);

done:
return retval;
Expand Down
10 changes: 10 additions & 0 deletions include/linux/virtio_9p.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef _LINUX_VIRTIO_9P_H
#define _LINUX_VIRTIO_9P_H
#include <linux/virtio_config.h>

/* The ID for virtio console */
#define VIRTIO_ID_9P 9
/* Maximum number of virtio channels per partition (1 for now) */
#define MAX_9P_CHAN 1

#endif /* _LINUX_VIRTIO_9P_H */
7 changes: 7 additions & 0 deletions net/9p/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ config NET_9P_FD
file descriptors. TCP/IP is the default transport for 9p,
so if you are going to use 9p, you'll likely want this.

config NET_9P_VIRTIO
depends on NET_9P && EXPERIMENTAL && VIRTIO
tristate "9P Virtio Transport (Experimental)"
help
This builds support for a transports between
guest partitions and a host partition.

config NET_9P_DEBUG
bool "Debug information"
depends on NET_9P
Expand Down
4 changes: 4 additions & 0 deletions net/9p/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
obj-$(CONFIG_NET_9P) := 9pnet.o
obj-$(CONFIG_NET_9P_FD) += 9pnet_fd.o
obj-$(CONFIG_NET_9P_VIRTIO) += 9pnet_virtio.o

9pnet-objs := \
mod.o \
Expand All @@ -12,3 +13,6 @@ obj-$(CONFIG_NET_9P_FD) += 9pnet_fd.o

9pnet_fd-objs := \
trans_fd.o \

9pnet_virtio-objs := \
trans_virtio.o \
Loading

0 comments on commit 01e7ae8

Please sign in to comment.