Review changes
  Use sequential types and simplify switch statements
  Eliminate snaps_section and get all attributes in attr_section
  Check for write_fd errors in write_section() and write_simple()
  Pass bufferlist ptr to read_section()