summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/denode.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-04-07 07:55:37 +0000
committerphk <phk@FreeBSD.org>2005-04-07 07:55:37 +0000
commitbae9f6cfa0c2c9dd7716b10fa98896be0722850c (patch)
tree27302aa42f5e6b37b7bd6e06813acd6a8118297f /sys/fs/msdosfs/denode.h
parentb7a4869221a838f4dd4856a2d45e1a47c03f4e72 (diff)
downloadFreeBSD-src-bae9f6cfa0c2c9dd7716b10fa98896be0722850c.zip
FreeBSD-src-bae9f6cfa0c2c9dd7716b10fa98896be0722850c.tar.gz
Give msdosfs a unique inode number which is really the byteoffset of
the directory entry. This solves the corruption problem I belive. Regression test script by: silby
Diffstat (limited to 'sys/fs/msdosfs/denode.h')
-rw-r--r--sys/fs/msdosfs/denode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h
index e3f5bb2..cbba8e7 100644
--- a/sys/fs/msdosfs/denode.h
+++ b/sys/fs/msdosfs/denode.h
@@ -158,6 +158,7 @@ struct denode {
struct fatcache de_fc[FC_SIZE]; /* fat cache */
u_quad_t de_modrev; /* Revision level for lease. */
struct lockf *de_lockf; /* lockf */
+ u_int64_t de_inode; /* Inode number (really byte offset of direntry) */
};
/*
OpenPOWER on IntegriCloud