While reading code, I notice off in mdfd is an uint32, which might beproblematic. Considering enlarge segsize to 8GB and even larger, the offmight be overflowed. So I change it to off_t.
Best regards,Yuhang Qiu