Remove no longer supported suspend code.
This commit is contained in:
parent
2e4745d49b
commit
60c8f07a95
@ -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 @@ usage()
|
||||
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 @@ main(int argc, char *argv[])
|
||||
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 @@ main(int argc, char *argv[])
|
||||
| (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");
|
||||
|
||||
|
@ -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 @@ dtfs_fs_nodetofh(struct puffs_usermount *pu, void *cookie,
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user