[PATCH 5/5] dwrite: Implement masking with positional lookup flags.