On Thu, Jan 11, 2018 at 07:07:43PM -0600, Eric Sandeen wrote: > > > On 1/5/18 7:51 PM, Darrick J. Wong wrote: > > From: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > > > Create the foundations of a filesystem scrubbing tool that asks the > > kernel to inspect all metadata in the filesystem and (ultimately) to > > repair anything that's broken. Also create the man page for the > > utility. > > > > Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> > > ... > > > +/* > > + * XFS Online Metadata Scrub (and Repair) > > + * > > + * The XFS scrubber uses custom XFS ioctls to probe more deeply into the > > + * internals of the filesystem. It takes advantage of scrubbing ioctls > > + * to check all the records stored in a metadata object and to > > + * cross-reference those records against the other filesystem metadata. > > + * > > + * After the program gathers command line arguments to figure out > > + * exactly what the user wants the program is going to do, scrub > > * exactly what the user wants the program to do > > or - > > * exactly what the program is going to do > > or - > > * exactly what the user wants to do > > :) The second. The program can figure out what the program is going to do; it has no idea what the user wants. > > + * execution is split up into several separate phases: > > + * > > + * The "find geometry" phase queries XFS for the filesystem geometry. > > + * The block devices for the data, realtime, and log devices are opened. > > + * Kernel ioctls are test-queried to see if they actually work (the scrub > > + * ioctl in particular), and any other filesystem-specific information > > + * is gathered. > > + * > > + * In the "check internal metadata" phase, we call the metadata scrub > > + * ioctl to check the filesystem's internal per-AG btrees. This > > + * includes the AG superblock, AGF, AGFL, and AGI headers, freespace > > + * btrees, the regular and free inode btrees, the reverse mapping > > + * btrees, and the reference counting btrees. If the realtime device is > > + * enabled, the realtime bitmap and reverse mapping btrees are enabled. > > checked? Fixed. --D > -Eric > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html