Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/examples/puffs/dtfs Remove no longer supported suspend...
details: https://anonhg.NetBSD.org/src/rev/c45bfaa4602a
branches: trunk
changeset: 749612:c45bfaa4602a
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Dec 04 13:43:28 2009 +0000
description:
Remove no longer supported suspend code.
diffstat:
share/examples/puffs/dtfs/dtfs.c | 17 +----------------
share/examples/puffs/dtfs/dtfs_vfsops.c | 11 +----------
2 files changed, 2 insertions(+), 26 deletions(-)
diffs (70 lines):
diff -r 7dbed5e734ed -r c45bfaa4602a share/examples/puffs/dtfs/dtfs.c
--- a/share/examples/puffs/dtfs/dtfs.c Fri Dec 04 13:35:56 2009 +0000
+++ b/share/examples/puffs/dtfs/dtfs.c Fri Dec 04 13:43:28 2009 +0000
@@ -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");
diff -r 7dbed5e734ed -r c45bfaa4602a share/examples/puffs/dtfs/dtfs_vfsops.c
--- a/share/examples/puffs/dtfs/dtfs_vfsops.c Fri Dec 04 13:35:56 2009 +0000
+++ b/share/examples/puffs/dtfs/dtfs_vfsops.c Fri Dec 04 13:43:28 2009 +0000
@@ -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)
{
Home |
Main Index |
Thread Index |
Old Index