Add pwrite and afpinfo_unpack