- // Only use an exclusive open if we're not debugging.
- fd = open(dev.devname, O_RDONLY | (debug ? 0 : O_EXLOCK));
+ // Open with a shared lock if we're not debugging, since the hfs estimator api is invoked from the booted system
+ fd = open(dev.devname, O_RDONLY | (debug ? 0 : O_SHLOCK));