use attachment_state() to get the volume attachment state reliably