Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ffs/ffs_snapshot.c
Show First 20 Lines • Show All 2,561 Lines • ▼ Show 20 Lines | readblock(vp, bp, lbn) | ||||
bip = g_alloc_bio(); | bip = g_alloc_bio(); | ||||
bip->bio_cmd = BIO_READ; | bip->bio_cmd = BIO_READ; | ||||
bip->bio_offset = dbtob(fsbtodb(fs, blkstofrags(fs, lbn))); | bip->bio_offset = dbtob(fsbtodb(fs, blkstofrags(fs, lbn))); | ||||
bip->bio_data = bp->b_data; | bip->bio_data = bp->b_data; | ||||
bip->bio_length = bp->b_bcount; | bip->bio_length = bp->b_bcount; | ||||
bip->bio_done = NULL; | bip->bio_done = NULL; | ||||
g_io_request(bip, ITODEVVP(ip)->v_bufobj.bo_private); | g_io_request(bip, vp2bo(ITODEVVP(ip))->bo_private); | ||||
bp->b_error = biowait(bip, "snaprdb"); | bp->b_error = biowait(bip, "snaprdb"); | ||||
g_destroy_bio(bip); | g_destroy_bio(bip); | ||||
return (bp->b_error); | return (bp->b_error); | ||||
} | } | ||||
#endif | #endif | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |