hfsplus: incorrect return value