HomeFreeBSD

MFC r309856: Postpone ZVOL media/block size caching till first open.

Description

MFC r309856: Postpone ZVOL media/block size caching till first open.

At least on FreeBSD there are no legal way to access media or get its
size without opening device/provider first. Postponing this caching
allows to skip several disk seeks per ZVOL/snapshot during import.

For HDD pool with 1 ZVOL in dev mode with 1000 snapshots this reduces
pool import time from 40 to 10 seconds.

Details

Provenance
mavAuthored on
Parents
rS315445: MFC r309833: Add missed vfs.zfs.zfetch.max_idistance sysctl.
Branches
Unknown
Tags
Unknown