summaryrefslogtreecommitdiff
path: root/sbin/fsck_msdos/dosfs.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 04:38:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-06-10 04:38:19 +0000
commita43b0fdedb5d4c0f3028356a75acba0e9174f78d (patch)
treeb6fcf23d77c74b1c5f259d7b7ef32c9569e01455 /sbin/fsck_msdos/dosfs.h
parenteba60f59cafa2e114de37d6649e28062eb22db58 (diff)
from ws;
Check return values of malloc Generate full pathnames only on request Minor cleanup, RCS Ids in .h files Don't allocate data structures for non-directories Free any data structures when finishing a check (at the latest)
Diffstat (limited to 'sbin/fsck_msdos/dosfs.h')
-rw-r--r--sbin/fsck_msdos/dosfs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/fsck_msdos/dosfs.h b/sbin/fsck_msdos/dosfs.h
index c0295bc7b10..e94bb8b0a60 100644
--- a/sbin/fsck_msdos/dosfs.h
+++ b/sbin/fsck_msdos/dosfs.h
@@ -1,3 +1,4 @@
+/* $NetBSD: dosfs.h,v 1.1.4.1 1996/05/31 18:41:42 jtc Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank
@@ -77,7 +78,7 @@ struct fatEntry {
cl_t next; /* pointer to next cluster */
cl_t head; /* pointer to start of chain */
u_int32_t length; /* number of clusters on chain */
- struct dosDirEntry *dirp; /* corresponding file name */
+ int flags; /* see below */
};
#define CLUST_FREE 0 /* 0 means cluster is free */
@@ -87,6 +88,8 @@ struct fatEntry {
#define CLUST_EOFS 0xfff8 /* start of EOF indicators */
#define CLUST_EOF 0xffff /* standard value for last cluster */
+#define FAT_USED 1 /* This fat chain is used in a file */
+
#define DOSLONGNAMELEN 256 /* long name maximal length */
#define LRFIRST 0x40 /* first long name record */
#define LRNOMASK 0x1f /* mask to extract long record
@@ -100,7 +103,6 @@ struct dosDirEntry {
*parent, /* previous tree level */
*next, /* next brother */
*child; /* if this is a directory */
- char *fullpath; /* path name from root to this directory */
char name[8+1+3+1]; /* alias name first part */
char lname[DOSLONGNAMELEN]; /* real name */
uint flags; /* attributes */