From 9fc31f8a5f7509f2f4f0399336d80bae7d97d0e5 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Mon, 23 Jan 2006 17:45:57 +0000 Subject: [PATCH] Update incorrect comments here, there should not be a call to panic() over fs corruption. Discussed with: alfred, phk --- sys/fs/msdosfs/msdosfs_vnops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 9423cc80c3cc..15665e0778fb 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -1176,7 +1176,7 @@ msdosfs_rename(ap) zp->de_fndoffset = from_diroffset; error = removede(zp, ip); if (error) { - /* XXX should really panic here, fs is corrupt */ + /* XXX should downgrade to ro here, fs is corrupt */ if (newparent) VOP_UNLOCK(fdvp, 0, td); VOP_UNLOCK(fvp, 0, td); @@ -1186,7 +1186,7 @@ msdosfs_rename(ap) error = pcbmap(dp, de_cluster(pmp, to_diroffset), 0, &ip->de_dirclust, 0); if (error) { - /* XXX should really panic here, fs is corrupt */ + /* XXX should downgrade to ro here, fs is corrupt */ if (newparent) VOP_UNLOCK(fdvp, 0, td); VOP_UNLOCK(fvp, 0, td); @@ -1216,7 +1216,7 @@ msdosfs_rename(ap) error = bread(pmp->pm_devvp, bn, pmp->pm_bpcluster, NOCRED, &bp); if (error) { - /* XXX should really panic here, fs is corrupt */ + /* XXX should downgrade to ro here, fs is corrupt */ brelse(bp); VOP_UNLOCK(fvp, 0, td); goto bad; @@ -1227,7 +1227,7 @@ msdosfs_rename(ap) putushort(dotdotp->deHighClust, dp->de_StartCluster >> 16); error = bwrite(bp); if (error) { - /* XXX should really panic here, fs is corrupt */ + /* XXX should downgrade to ro here, fs is corrupt */ VOP_UNLOCK(fvp, 0, td); goto bad; }