summaryrefslogtreecommitdiffstats
path: root/sbin/newfs_msdos
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2013-09-07 03:10:12 +0000
committerpfg <pfg@FreeBSD.org>2013-09-07 03:10:12 +0000
commita9a4a13a0e4553620771dea0805b446f7fc60d3f (patch)
tree214114d7f5d9d104b070c10e653f27b88677d64b /sbin/newfs_msdos
parent807f696b94dabbceb97f8d695288591adefaedb5 (diff)
downloadFreeBSD-src-a9a4a13a0e4553620771dea0805b446f7fc60d3f.zip
FreeBSD-src-a9a4a13a0e4553620771dea0805b446f7fc60d3f.tar.gz
newfs_msdos: fix inaccurate comments.
The fields from deMTime and deMDate in the DOS directory entry are actually the last-modified time/date. According to some online documentation these are the only timestamps available in FAT12/FAT16. MFC after: 3 days
Diffstat (limited to 'sbin/newfs_msdos')
-rw-r--r--sbin/newfs_msdos/newfs_msdos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c
index fe1631a..217b720 100644
--- a/sbin/newfs_msdos/newfs_msdos.c
+++ b/sbin/newfs_msdos/newfs_msdos.c
@@ -139,8 +139,8 @@ struct de {
u_int8_t deName[11]; /* name and extension */
u_int8_t deAttributes; /* attributes */
u_int8_t rsvd[10]; /* reserved */
- u_int8_t deMTime[2]; /* creation time */
- u_int8_t deMDate[2]; /* creation date */
+ u_int8_t deMTime[2]; /* last-modified time */
+ u_int8_t deMDate[2]; /* last-modified date */
u_int8_t deStartCluster[2]; /* starting cluster */
u_int8_t deFileSize[4]; /* size */
} __packed;
OpenPOWER on IntegriCloud