HomeFreeBSD

Read the contents of the snapshot files properly

Description

Read the contents of the snapshot files properly

  • Use fgetln instead of fgets; localize complexity related to fgetln(3) inside the loop.
  • Skip over blank lines.
  • Skip over lines (properly) that start with a "#"

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
ngieAuthored on
Parents
rS299653: Add more Linux defines. Improve some existing ones.
Branches
Unknown
Tags
Unknown