block: Add "file" output parameter to block status query functions