Changes to support a generic stream interface on block devices