There are several bugs/hangs when trying to take a snapshot on a UFS/FFS
filesystem running with journaled soft updates. Until these problems have been tracked down, return ENOTSUPP when an attempt is made to take a snapshot on a filesystem running with journaled soft updates. MFC after: 2 weeks
This commit is contained in:
parent
cc672d3599
commit
86b571509a
@ -225,10 +225,18 @@ ffs_snapshot(mp, snapfile)
|
||||
ump = VFSTOUFS(mp);
|
||||
fs = ump->um_fs;
|
||||
sn = NULL;
|
||||
/*
|
||||
* At the moment, journaled soft updates cannot support
|
||||
* taking snapshots.
|
||||
*/
|
||||
if (MOUNTEDSUJ(mp)) {
|
||||
vfs_mount_error(mp, "%s: Snapshots are not yet supported when "
|
||||
"running with journaled soft updates", fs->fs_fsmnt);
|
||||
return (EOPNOTSUPP);
|
||||
}
|
||||
MNT_ILOCK(mp);
|
||||
flag = mp->mnt_flag;
|
||||
MNT_IUNLOCK(mp);
|
||||
|
||||
/*
|
||||
* Need to serialize access to snapshot code per filesystem.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user