Index: uspace/app/tester/Makefile
===================================================================
--- uspace/app/tester/Makefile	(revision 38c706cc8a6d3b4125c0704bdb5d9d6fe37e7fbf)
+++ uspace/app/tester/Makefile	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -53,5 +53,6 @@
 	ipc/answer.c \
 	ipc/hangup.c \
-	devmap/devmap1.c
+	devmap/devmap1.c \
+	vfs/vfs1.c
 
 OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
Index: uspace/app/tester/tester.c
===================================================================
--- uspace/app/tester/tester.c	(revision 38c706cc8a6d3b4125c0704bdb5d9d6fe37e7fbf)
+++ uspace/app/tester/tester.c	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -57,4 +57,5 @@
 #include "ipc/hangup.def"
 #include "devmap/devmap1.def"
+#include "vfs/vfs1.def"
 	{NULL, NULL, NULL}
 };
Index: uspace/app/tester/tester.h
===================================================================
--- uspace/app/tester/tester.h	(revision 38c706cc8a6d3b4125c0704bdb5d9d6fe37e7fbf)
+++ uspace/app/tester/tester.h	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -69,4 +69,5 @@
 extern char * test_hangup(bool quiet);
 extern char * test_devmap1(bool quiet);
+extern char * test_vfs1(bool quiet);
 
 extern test_t tests[];
Index: uspace/app/tester/vfs/vfs1.c
===================================================================
--- uspace/app/tester/vfs/vfs1.c	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
+++ uspace/app/tester/vfs/vfs1.c	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -0,0 +1,83 @@
+/*
+ * Copyright (c) 2007 Jakub Jermar
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <ipc/ipc.h>
+#include <ipc/services.h>
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include <async.h>
+#include "../../../srv/vfs/vfs.h" 
+#include "../tester.h"
+
+#define TMPFS_DEVHANDLE	999
+
+char buf[FS_NAME_MAXLEN + 1] = "tmpfs";
+
+char *test_vfs1(bool quiet)
+{
+	/* 1. connect to VFS */
+	int vfs_phone;
+	vfs_phone = ipc_connect_me_to(PHONE_NS, SERVICE_VFS, 0, 0);
+	if (vfs_phone < EOK) {
+		return "Could not connect to VFS.\n";
+	}
+	
+	/* 2. mount TMPFS as / */
+	ipcarg_t rc;
+	aid_t req;
+	req = async_send_1(vfs_phone, VFS_MOUNT, TMPFS_DEVHANDLE, NULL);
+	buf[sizeof(buf) - 1] = '/';
+	if (ipc_data_send(vfs_phone, buf, sizeof(buf)) != EOK) {
+		async_wait_for(req, &rc);
+		return "Could not send data to VFS.\n";
+	}
+	async_wait_for(req, &rc);
+	if (rc != EOK) {
+		return "Mount failed.\n";
+	}
+	
+	/* 3. open some files */
+	char *path = "/dir2/file2";
+	ipc_call_t answer;
+	req = async_send_2(vfs_phone, VFS_OPEN, 0, 0, &answer);
+	if (ipc_data_send(vfs_phone, path, strlen(path)) != EOK) {
+		async_wait_for(req, &rc);
+		return "Could not send path to VFS.\n";
+	}
+	async_wait_for(req, &rc);
+	if (rc != EOK) {
+		return "Open failed.\n";
+	}
+
+	if (!quiet) {
+		printf("Opened %s handle=%d\n", path, IPC_GET_ARG1(answer));
+	}
+
+	return NULL;
+}
Index: uspace/app/tester/vfs/vfs1.def
===================================================================
--- uspace/app/tester/vfs/vfs1.def	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
+++ uspace/app/tester/vfs/vfs1.def	(revision 63448512ad24cc1ceeb9a344e89d03ebe59dc3a3)
@@ -0,0 +1,6 @@
+{
+	"vfs1",
+	"VFS test",
+	&test_vfs1,
+	true
+},
