I saw this revision fixed something that has been puzzling me. However, if the fix is applied, NDFS can't handle 0-byte files anymore. It will simply hang. I didn't look into the code yet. Maybe this case is something that needs to be handled specially?
Yitao