SET(LIBZYPP_MAJOR "15")
SET(LIBZYPP_COMPATMINOR "19")
SET(LIBZYPP_MINOR "21")
-SET(LIBZYPP_PATCH "5")
+SET(LIBZYPP_PATCH "6")
#
-# LAST RELEASED: 15.21.5 (19)
+# LAST RELEASED: 15.21.6 (19)
# (The number in parenthesis is LIBZYPP_COMPATMINOR)
#=======
+-------------------------------------------------------------------
+Fri Apr 15 11:31:08 CEST 2016 - ma@suse.de
+
+- DiskUsageCounter: Limit estimated waste per file (bsc#974275)
+- version 15.21.6 (19)
+
-------------------------------------------------------------------
Fri Mar 18 13:37:22 CET 2016 - ma@suse.de
unsigned idx = 0;
for_( it, result.begin(), result.end() )
{
- static const ByteCount blockAdjust( 2, ByteCount::K ); // (files * blocksize) / (2 * 1K)
+ // Limit estimated waste (half block per file) as it does not apply to
+ // btrfs, which reports up to 64K blocksize (bsc#974275,bsc#965322)
+ static const ByteCount blockAdjust( 2, ByteCount::K ); // (files * blocksize) / 2 / 1K; result value in K!
+
it->pkg_size = it->used_size // current usage
+ duchanges[idx].kbytes // package data size
- + ( duchanges[idx].files * it->block_size / blockAdjust ); // half block per file
+ + ( duchanges[idx].files * ( it->fstype == "btrfs" ? 4096 : it->block_size ) / blockAdjust ); // half block per file
++idx;
}
}
assert_url( service );
MIL << "Going to refresh service '" << service.alias() << "', url: " << service.url() << ", opts: " << options_r << endl;
- if ( service.ttl() && !options_r.testFlag( RefreshService_forceRefresh ) )
+ if ( service.ttl() && !( options_r.testFlag( RefreshService_forceRefresh) || options_r.testFlag( RefreshService_restoreStatus ) ) )
{
// Service defines a TTL; maybe we can re-use existing data without refresh.
Date lrf = service.lrf();
if ( res == 0 )
{
- detail_r.push_back( CheckPackageDetail::value_type( CHK_OK, std::move(vresult) ) );
+ // remove trailing NL!
+ detail_r.push_back( CheckPackageDetail::value_type( CHK_OK, str::rtrim( std::move(vresult) ) ) );
return CHK_OK;
}