diff options
author | Alasdair G Kergon <agk@redhat.com> | 2017-12-04 23:18:56 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2017-12-04 23:45:26 +0000 |
commit | e4805e48830c66e5fdcabf162a09cc27d6b73bc1 (patch) | |
tree | 89986278b6287a0541968fcf003e6ee00b85f62a /lib/log | |
parent | 698483b5a1bc71e3f48581e2e0bbc269e7d237a9 (diff) | |
download | lvm2-e4805e48830c66e5fdcabf162a09cc27d6b73bc1.tar.gz |
device: categorise block i/o
Introduce enum dev_io_reason to categorise block device I/O
in debug messages so it's obvious what it is for.
DEV_IO_SIGNATURES /* Scanning device signatures */
DEV_IO_LABEL /* LVM PV disk label */
DEV_IO_MDA_HEADER /* Text format metadata area header */
DEV_IO_MDA_CONTENT /* Text format metadata area content */
DEV_IO_FMT1 /* Original LVM1 metadata format */
DEV_IO_POOL /* Pool metadata format */
DEV_IO_LV /* Content written to an LV */
DEV_IO_LOG /* Logging messages */
Diffstat (limited to 'lib/log')
-rw-r--r-- | lib/log/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log/log.c b/lib/log/log.c index 208959bc3..808090fc0 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -694,7 +694,7 @@ static void _vprint_log(int level, const char *file, int line, int dm_errno_or_c buf[bufused] = '\n'; buf[sizeof(buf) - 1] = '\n'; /* FIXME real size bufused */ - dev_append(&_log_dev, sizeof(buf), buf); + dev_append(&_log_dev, sizeof(buf), DEV_IO_LOG, buf); _already_logging = 0; } } |