diff options
Diffstat (limited to 'include/llfio/v2.0/detail/impl/windows/statfs.ipp')
-rw-r--r-- | include/llfio/v2.0/detail/impl/windows/statfs.ipp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/llfio/v2.0/detail/impl/windows/statfs.ipp b/include/llfio/v2.0/detail/impl/windows/statfs.ipp index 8b23b4e1..a712433b 100644 --- a/include/llfio/v2.0/detail/impl/windows/statfs.ipp +++ b/include/llfio/v2.0/detail/impl/windows/statfs.ipp @@ -141,6 +141,13 @@ LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<size_t> statfs_t::fill(const handle &h, s f_iosize = ffssi->PhysicalBytesPerSectorForPerformance; ++ret; } + if(!!(wanted & want::iosinprogress) || !!(wanted & want::iosbusytime)) + { + if(f_mntfromname.empty()) + { + wanted |= want::mntfromname; + } + } if((wanted & want::mntfromname) || (wanted & want::mntonname)) { // Irrespective we need the path before figuring out the mounted device @@ -240,6 +247,20 @@ LLFIO_HEADERS_ONLY_MEMFUNC_SPEC result<size_t> statfs_t::fill(const handle &h, s break; } } + if(!!(wanted & want::iosinprogress) || !!(wanted & want::iosbusytime)) + { + OUTCOME_TRY(auto &&ios, _fill_ios(h, f_mntfromname)); + if(!!(wanted & want::iosinprogress)) + { + f_iosinprogress = ios.first; + ++ret; + } + if(!!(wanted & want::iosbusytime)) + { + f_iosbusytime = ios.second; + ++ret; + } + } return ret; } |