aboutsummaryrefslogtreecommitdiff
path: root/sys/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-02-10 18:39:45 +0000
committerBruce Evans <bde@FreeBSD.org>1995-02-10 18:39:45 +0000
commit24d4540cff1e57d356d4b81ff5ddbb05c5a40377 (patch)
tree1ce150ec5b479536ad9d038081e53ca2f64e6a5e /sys/msdosfs/msdosfs_fat.c
parent045de8d38f5b73ab9f0c1dd00c92032504923a97 (diff)
downloadsrc-24d4540cff1e57d356d4b81ff5ddbb05c5a40377.tar.gz
src-24d4540cff1e57d356d4b81ff5ddbb05c5a40377.zip
Use the correct block number for updating the backup copy of the FAT when
deleting a file. Deleting a large file used to scramble the backup copy.
Notes
Notes: svn path=/head/; revision=6303
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/msdosfs/msdosfs_fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c
index 742325d8b96a..9a8420cee8ff 100644
--- a/sys/msdosfs/msdosfs_fat.c
+++ b/sys/msdosfs/msdosfs_fat.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_fat.c,v 1.3 1994/10/10 07:57:33 phk Exp $ */
+/* $Id: msdosfs_fat.c,v 1.4 1994/12/12 12:35:45 bde Exp $ */
/* $NetBSD: msdosfs_fat.c,v 1.12 1994/08/21 18:44:04 ws Exp $ */
/*-
@@ -765,7 +765,7 @@ freeclusterchain(pmp, cluster)
fatblock(pmp, byteoffset, &bn, &bsize, &bo);
if (lbn != bn) {
if (bp)
- updatefats(pmp, bp, bn);
+ updatefats(pmp, bp, lbn);
error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp);
if (error)
return error;