Module Name: src
Committed By: pooka
Date: Fri Dec 4 13:43:28 UTC 2009
Modified Files:
src/share/examples/puffs/dtfs: dtfs.c dtfs_vfsops.c
Log Message:
Remove no longer supported suspend code.
To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/share/examples/puffs/dtfs/dtfs.c
cvs rdiff -u -r1.23 -r1.24 src/share/examples/puffs/dtfs/dtfs_vfsops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/examples/puffs/dtfs/dtfs.c
diff -u src/share/examples/puffs/dtfs/dtfs.c:1.39 src/share/examples/puffs/dtfs/dtfs.c:1.40
--- src/share/examples/puffs/dtfs/dtfs.c:1.39 Wed Dec 19 14:01:30 2007
+++ src/share/examples/puffs/dtfs/dtfs.c Fri Dec 4 13:43:28 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dtfs.c,v 1.39 2007/12/19 14:01:30 pooka Exp $ */
+/* $NetBSD: dtfs.c,v 1.40 2009/12/04 13:43:28 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@@ -69,18 +69,6 @@
exit(1);
}
-/*
- * This is not perhaps entirely kosher, but this is test file system,
- * so I'm really not concerned.
- */
-static void
-dosuspend(int v)
-{
-
- puffs_fs_suspend(gpu);
- puffs_fs_suspend(gpu);
-}
-
static void
wipe_the_sleep_out_of_my_eyes(int v)
{
@@ -198,7 +186,6 @@
PUFFSOP_SETFSNOP(pops, sync);
PUFFSOP_SET(pops, dtfs, fs, fhtonode);
PUFFSOP_SET(pops, dtfs, fs, nodetofh);
- PUFFSOP_SET(pops, dtfs, fs, suspend);
PUFFSOP_SET(pops, dtfs, node, lookup);
PUFFSOP_SET(pops, dtfs, node, access);
@@ -232,8 +219,6 @@
| (dynamicfh ? PUFFS_FHFLAG_DYNAMIC : 0));
puffs_setncookiehash(pu, khashbuckets);
- if (signal(SIGUSR1, dosuspend) == SIG_ERR)
- warn("cannot set suspend sighandler");
if (signal(SIGALRM, wipe_the_sleep_out_of_my_eyes) == SIG_ERR)
warn("cannot set alarm sighandler");
Index: src/share/examples/puffs/dtfs/dtfs_vfsops.c
diff -u src/share/examples/puffs/dtfs/dtfs_vfsops.c:1.23 src/share/examples/puffs/dtfs/dtfs_vfsops.c:1.24
--- src/share/examples/puffs/dtfs/dtfs_vfsops.c:1.23 Fri Nov 30 19:02:37 2007
+++ src/share/examples/puffs/dtfs/dtfs_vfsops.c Fri Dec 4 13:43:28 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: dtfs_vfsops.c,v 1.23 2007/11/30 19:02:37 pooka Exp $ */
+/* $NetBSD: dtfs_vfsops.c,v 1.24 2009/12/04 13:43:28 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@@ -289,15 +289,6 @@
return 0;
}
-void
-dtfs_fs_suspend(struct puffs_usermount *pu, int status)
-{
-
- printf("suspend status %d\n", status);
- if (status == 1)
- sleep(3);
-}
-
int
dtfs_fs_unmount(struct puffs_usermount *pu, int flags)
{