From bed9e3727330b007fdf180172e9862a45148e1e9 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 23 Jun 2008 17:21:58 +0000 Subject: [PATCH] Support S_IFDIR mknod() calls for HAMMER. This is used by the Hammer utility program to create pseudo-filesystem directories inside HAMMER. --- sys/kern/vfs_syscalls.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 474fc1aec6..b347bb65f1 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -37,7 +37,7 @@ * * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94 * $FreeBSD: src/sys/kern/vfs_syscalls.c,v 1.151.2.18 2003/04/04 20:35:58 tegge Exp $ - * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.131 2008/06/03 16:16:40 dillon Exp $ + * $DragonFly: src/sys/kern/vfs_syscalls.c,v 1.132 2008/06/23 17:21:58 dillon Exp $ */ #include @@ -1888,6 +1888,10 @@ kern_mknod(struct nlookupdata *nd, int mode, int rmajor, int rminor) case S_IFWHT: whiteout = 1; break; + case S_IFDIR: + /* special directories support for HAMMER */ + vattr.va_type = VDIR; + break; default: error = EINVAL; break; -- 2.11.4.GIT