WriteStructContext treats state of fs