Unmount frequently requires some test code, so define it here as
a dummy instead of libpuffs to make plugging the test code in easier.
This commit is contained in:
parent
dca252d8a0
commit
d583f4a1ec
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dtfs.c,v 1.22 2007/05/07 17:18:50 pooka Exp $ */
|
||||
/* $NetBSD: dtfs.c,v 1.23 2007/05/07 17:22:50 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
|
||||
@ -138,7 +138,7 @@ main(int argc, char *argv[])
|
||||
PUFFSOP_INIT(pops);
|
||||
|
||||
PUFFSOP_SET(pops, dtfs, fs, statvfs);
|
||||
PUFFSOP_SETFSNOP(pops, unmount);
|
||||
PUFFSOP_SET(pops, dtfs, fs, unmount);
|
||||
PUFFSOP_SETFSNOP(pops, sync);
|
||||
PUFFSOP_SET(pops, dtfs, fs, fhtonode);
|
||||
PUFFSOP_SET(pops, dtfs, fs, nodetofh);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dtfs_vfsops.c,v 1.15 2007/04/16 13:25:09 pooka Exp $ */
|
||||
/* $NetBSD: dtfs_vfsops.c,v 1.16 2007/05/07 17:22:50 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
|
||||
@ -36,6 +36,7 @@
|
||||
#include <errno.h>
|
||||
#include <puffs.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <util.h>
|
||||
|
||||
@ -215,3 +216,10 @@ dtfs_fs_suspend(struct puffs_cc *pcc, int status)
|
||||
if (status == 1)
|
||||
sleep(3);
|
||||
}
|
||||
|
||||
int
|
||||
dtfs_fs_unmount(struct puffs_cc *pcc, int flags, pid_t pid)
|
||||
{
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user