CSDiskSpaceGetRecoveryEstimate is logging excessively to install.log

Originator:krivoblotsky
Number:rdar://35646895 Date Originated:November 20 2017, 7:03 PM
Status:Open Resolved:
Product:macOS High Sierra 10.13 Beta (17A362a) Product Version:
Classification: Reproducible:Always
 
I use CoreServices.framework to get a conservative estimate of the number of
recoverable bytes on the specified volume. I have a timer and constantly call CSDiskSpaceGetRecoveryEstimate to do it.
Every call of CSDiskSpaceGetRecoveryEstimate leads to adding several entries to "var/log/install.log".
The entries are:
...
2017-11-20 18:48:13+02 Sergiis-MacBook-Pro deleted[388]: diskmanagement: [DMManager(PrivateMethods) clientConforms:error:]: currentThread=88223=0x1589f expectedThread=11531=0x2d0b
...
So my log is growing very fast is size.

I've debugged a lot and found out that the message came from private DiskManagement.framework from DMManager class.

Please see the attached source code.

Steps to Reproduce:

Call following code:
NSURL *url = [NSURL fileURLWithPath:@"/"];
long long size = CSDiskSpaceGetRecoveryEstimate((__bridge CFURLRef)(url));
NSLog(@"%lld", size);

Expected Results:
New warning entry is added to the /var/log/install.log.

Actual Results:
No warnings.

Version/Build:
macOS High Sierra 10.13 Beta (17A362a)

Configuration:
MacBook Pro (15-inch, 2017)
2.9 GHz Intel Core i7
16 GB 2133 MHz LPDDR3
ntel HD Graphics 630 1536 MB

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!