Skip to content

some file appears to be 0 bytes in length #22

@coboe

Description

@coboe

once a file is 0 bytes, pcstat is stop. and do not deal with other files.

$ ./pcstat /lib/x86_64-linux-gnu/libnsl-2.27.so
|--------------------------------------+----------------+------------+-----------+---------|
| Name | Size | Pages | Cached | Percent |
|--------------------------------------+----------------+------------+-----------+---------|
| /lib/x86_64-linux-gnu/libnsl-2.27.so | 97176 | 24 | 24 | 100.000 |
|--------------------------------------+----------------+------------+-----------+---------|

$ ./pcstat /lib/x86_64-linux-gnu/libnsl-2.27.so /lib/x86_64-linux-gnu/liblzma.so.5.2.2
|----------------------------------------+----------------+------------+-----------+---------|
| Name | Size | Pages | Cached | Percent |
|----------------------------------------+----------------+------------+-----------+---------|
| /lib/x86_64-linux-gnu/libnsl-2.27.so | 97176 | 24 | 24 | 100.000 |
| /lib/x86_64-linux-gnu/liblzma.so.5.2.2 | 153984 | 38 | 38 | 100.000 |
|----------------------------------------+----------------+------------+-----------+---------|

$ ./pcstat /home/gpu2/data1/rook/osd2/current/omap/LOCK
2019/11/21 08:07:04 /home/gpu2/data1/rook/osd2/current/omap/LOCK appears to be 0 bytes in length

$ ./pcstat /lib/x86_64-linux-gnu/libnsl-2.27.so /lib/x86_64-linux-gnu/liblzma.so.5.2.2 /home/gpu2/data1/rook/osd2/current/omap/LOCK
2019/11/21 08:08:30 /home/gpu2/data1/rook/osd2/current/omap/LOCK appears to be 0 bytes in length

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions