~ubuntu-branches/ubuntu/karmic/openafs/karmic-updates

« back to all changes in this revision

Viewing changes to src/bozo/fsbnodeops.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/bozo/fsbnodeops.c,v 1.13 2003/12/07 22:49:18 jaltman Exp $");
 
14
    ("$Header: /cvs/openafs/src/bozo/fsbnodeops.c,v 1.13.2.3 2007/11/26 21:21:49 shadow Exp $");
15
15
 
16
16
#include <sys/types.h>
17
17
#include <lwp.h>
26
26
#else
27
27
#include <sys/file.h>
28
28
 
29
 
#ifdef HAVE_STRING_H
30
29
#include <string.h>
31
 
#else
32
 
#ifdef HAVE_STRINGS_H
33
 
#include <strings.h>
34
 
#endif
35
 
#endif
36
30
#include <stdlib.h>
37
31
 
38
32
#endif /* AFS_NT40_ENV */
40
34
#include <afs/procmgmt.h>       /* signal(), kill(), wait(), etc. */
41
35
#include <afs/afsutil.h>
42
36
#include "bnode.h"
 
37
#include "bosprototypes.h"
43
38
 
44
39
static int fs_timeout(), fs_getstat(), fs_setstat(), fs_delete();
45
40
static int fs_procexit(), fs_getstring(), fs_getparm(), fs_restartp();
46
41
static int fs_hascore();
47
42
struct bnode *fs_create();
48
43
 
49
 
static SetNeedsClock();
 
44
static void SetNeedsClock();
50
45
static NudgeProcs();
51
46
 
52
47
static int emergency = 0;
515
510
}
516
511
 
517
512
/* make sure we're periodically checking the state if we need to */
518
 
static int
 
513
static void
519
514
SetNeedsClock(register struct fsbnode *ab)
520
515
{
521
516
    if (ab->b.goal == 1 && ab->fileRunning && ab->volRunning