summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_fat.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-02-10 18:39:45 +0000
committerbde <bde@FreeBSD.org>1995-02-10 18:39:45 +0000
commit24a94d2bcd8805747d649e003a2a9a18ffca1504 (patch)
tree1ce150ec5b479536ad9d038081e53ca2f64e6a5e /sys/fs/msdosfs/msdosfs_fat.c
parenta213898c49230ed1b81caec0108de4a7660d3fe2 (diff)
downloadFreeBSD-src-24a94d2bcd8805747d649e003a2a9a18ffca1504.zip
FreeBSD-src-24a94d2bcd8805747d649e003a2a9a18ffca1504.tar.gz
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.
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_fat.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_fat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_fat.c b/sys/fs/msdosfs/msdosfs_fat.c
index 742325d..9a8420c 100644
--- a/sys/fs/msdosfs/msdosfs_fat.c
+++ b/sys/fs/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;
OpenPOWER on IntegriCloud