Extract Setattr.Valid to Struct and cast Setattr.size
Add truncate support and tests