1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Read block hints list from last snapshot on the active snapshot list.

This commit is contained in:
Tor Egge 2006-05-16 00:14:20 +00:00
parent d93d98d98f
commit e0cf717542
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158636

View File

@ -1889,6 +1889,7 @@ ffs_snapshot_mount(mp)
struct thread *td = curthread;
struct snapdata *sn;
struct vnode *vp;
struct vnode *lastvp;
struct inode *ip;
struct uio auio;
struct iovec aiov;
@ -1906,6 +1907,7 @@ ffs_snapshot_mount(mp)
* Process each snapshot listed in the superblock.
*/
vp = NULL;
lastvp = NULL;
sn = devvp->v_rdev->si_snapdata;
for (snaploc = 0; snaploc < FSMAXSNAP; snaploc++) {
if (fs->fs_snapinum[snaploc] == 0)
@ -1976,7 +1978,9 @@ ffs_snapshot_mount(mp)
vp->v_vflag |= VV_SYSTEM;
VI_UNLOCK(devvp);
VOP_UNLOCK(vp, 0, td);
lastvp = vp;
}
vp = lastvp;
/*
* No usable snapshots found.
*/