]>
Commit | Line | Data |
---|---|---|
387032a8 MW |
1 | Index: squid/src/unlinkd.c |
2 | diff -c squid/src/unlinkd.c:1.44.2.1 squid/src/unlinkd.c:1.44.2.2 | |
3 | *** squid/src/unlinkd.c:1.44.2.1 Sat Jul 20 18:30:03 2002 | |
4 | --- squid/src/unlinkd.c Mon Jul 21 16:34:50 2003 | |
5 | *************** | |
6 | *** 139,144 **** | |
7 | --- 139,145 ---- | |
8 | return; | |
9 | } | |
10 | statCounter.unlink.requests++; | |
11 | + statCounter.syscalls.disk.unlinks++; | |
12 | queuelen++; | |
13 | } | |
14 | ||
15 | Index: squid/src/fs/aufs/store_io_aufs.c | |
16 | diff -c squid/src/fs/aufs/store_io_aufs.c:1.15.2.10 squid/src/fs/aufs/store_io_aufs.c:1.15.2.11 | |
17 | *** squid/src/fs/aufs/store_io_aufs.c:1.15.2.10 Wed Jun 18 17:13:40 2003 | |
18 | --- squid/src/fs/aufs/store_io_aufs.c Mon Jul 21 16:34:53 2003 | |
19 | *************** | |
20 | *** 66,71 **** | |
21 | --- 66,72 ---- | |
22 | sio->e = e; | |
23 | cbdataLock(callback_data); | |
24 | Opening_FD++; | |
25 | + statCounter.syscalls.disk.opens++; | |
26 | #if ASYNC_OPEN | |
27 | aioOpen(path, O_RDONLY | O_BINARY, 0644, storeAufsOpenDone, sio); | |
28 | #else | |
29 | *************** | |
30 | *** 120,125 **** | |
31 | --- 121,127 ---- | |
32 | sio->e = (StoreEntry *) e; | |
33 | cbdataLock(callback_data); | |
34 | Opening_FD++; | |
35 | + statCounter.syscalls.disk.opens++; | |
36 | #if ASYNC_CREATE | |
37 | aioOpen(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644, storeAufsOpenDone, sio); | |
38 | #else | |
39 | *************** | |
40 | *** 182,189 **** | |
41 | --- 184,193 ---- | |
42 | aiostate->flags.reading = 1; | |
43 | #if ASYNC_READ | |
44 | aioRead(aiostate->fd, offset, size, storeAufsReadDone, sio); | |
45 | + statCounter.syscalls.disk.reads++; | |
46 | #else | |
47 | file_read(aiostate->fd, buf, size, offset, storeAufsReadDone, sio); | |
48 | + /* file_read() increments syscalls.disk.reads */ | |
49 | #endif | |
50 | } | |
51 | ||
52 | *************** | |
53 | *** 222,230 **** | |
54 | --- 226,236 ---- | |
55 | aiostate->flags.writing = 1; | |
56 | aioWrite(aiostate->fd, offset, buf, size, storeAufsWriteDone, sio, | |
57 | free_func); | |
58 | + statCounter.syscalls.disk.writes++; | |
59 | #else | |
60 | file_write(aiostate->fd, offset, buf, size, storeAufsWriteDone, sio, | |
61 | free_func); | |
62 | + /* file_write() increments syscalls.disk.writes */ | |
63 | #endif | |
64 | } | |
65 | ||
66 | *************** | |
67 | *** 236,241 **** | |
68 | --- 242,248 ---- | |
69 | storeAufsDirReplRemove(e); | |
70 | storeAufsDirMapBitReset(SD, e->swap_filen); | |
71 | storeAufsDirUnlinkFile(SD, e->swap_filen); | |
72 | + statCounter.syscalls.disk.unlinks++; | |
73 | } | |
74 | ||
75 | /* === STATIC =========================================================== */ | |
76 | *************** | |
77 | *** 428,433 **** | |
78 | --- 435,441 ---- | |
79 | aioClose(fd); | |
80 | fd_close(fd); | |
81 | store_open_disk_fd--; | |
82 | + statCounter.syscalls.disk.closes++; | |
83 | debug(79, 9) ("%s:%d\n", __FILE__, __LINE__); | |
84 | } | |
85 |