diff options
author | Eric Wong <e@80x24.org> | 2020-07-20 03:36:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-08-09 03:12:31 +0000 |
commit | fc2f3298da5ad3496ff2ae7c1f6b5b5c4327decd (patch) | |
tree | 6e3bde8f3a5d994b94d2b9c0403f3c640b255e4e /cmogstored.h | |
parent | d7626e6cd2e71ab3587d3facc561187d8f94afa4 (diff) | |
download | cmogstored-fc2f3298da5ad3496ff2ae7c1f6b5b5c4327decd.tar.gz |
LUKS + btrfs on Linux gives an .st_rdev value of `0', so we can't reliably figure out what the "device:" field in /devXX/usage should be without parsing /proc/partitions. Since MogileFS::Worker::Monitor only cares about the "used:" and "total:" fields, we'll just emit "(?)" in the device field. The effort of parsing /proc/partitions to correctly display a field that our only known consumer won't use is a waste of our time.
Diffstat (limited to 'cmogstored.h')
-rw-r--r-- | cmogstored.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h index 081ffbf..35ddc73 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -108,6 +108,7 @@ struct mog_ioq { struct mog_wbuf; struct mog_dev { dev_t st_dev; + unsigned no_me_warned : 1; uint32_t devid; pthread_mutex_t usage_lock; /* protects usage_txt */ unsigned usage_len; |