diff mbox

[V9fs-developer] 9p: Add mksock support

Message ID 4BB3C349.3040805@linux.vnet.ibm.com (mailing list archive)
State Accepted
Delegated to: Eric Van Hensbergen
Headers show

Commit Message

jvrao March 31, 2010, 9:48 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index ae83967..e5d422c 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -1193,6 +1193,8 @@  v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, i
                sprintf(name, "c %u %u", MAJOR(rdev), MINOR(rdev));
        else if (S_ISFIFO(mode))
                *name = 0;
+       else if (S_ISSOCK(mode))
+               *name = 0;
        else {
                __putname(name);
                return -EINVAL;