summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfsmount.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-02-22 15:09:54 +0000
committerache <ache@FreeBSD.org>1998-02-22 15:09:54 +0000
commit4c96c86e7fd18c573deb070311fb9165c00f1b37 (patch)
treea73e77bc941ad8d5e4bdb4d7bfe02d2864b3ae3e /sys/fs/msdosfs/msdosfsmount.h
parent80b03bbf40d57c2f7bbe580c385d404ebd5e060d (diff)
downloadFreeBSD-src-4c96c86e7fd18c573deb070311fb9165c00f1b37.zip
FreeBSD-src-4c96c86e7fd18c573deb070311fb9165c00f1b37.tar.gz
Implement loadable local<->unicode file names conversion
Note: it produce correct names only for Win95, DOS names are still incorrect and need similar work mount_msdos support coming soon
Diffstat (limited to 'sys/fs/msdosfs/msdosfsmount.h')
-rw-r--r--sys/fs/msdosfs/msdosfsmount.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfsmount.h b/sys/fs/msdosfs/msdosfsmount.h
index 3a0ee6e..35dc7d9 100644
--- a/sys/fs/msdosfs/msdosfsmount.h
+++ b/sys/fs/msdosfs/msdosfsmount.h
@@ -1,4 +1,4 @@
-/* $Id: msdosfsmount.h,v 1.12 1997/10/12 20:25:02 phk Exp $ */
+/* $Id: msdosfsmount.h,v 1.13 1998/02/18 09:28:47 jkh Exp $ */
/* $NetBSD: msdosfsmount.h,v 1.17 1997/11/17 15:37:07 ws Exp $ */
/*-
@@ -93,6 +93,7 @@ struct msdosfsmount {
u_int *pm_inusemap; /* ptr to bitmap of in-use clusters */
u_int pm_flags; /* see below */
struct netexport pm_export; /* export information */
+ u_int16_t pm_u2w[128]; /* Local->Unicode table */
};
/* Byte offset in FAT on filesystem pmp, cluster cn */
#define FATOFS(pmp, cn) ((cn) * (pmp)->pm_fatmult / (pmp)->pm_fatdiv)
@@ -202,6 +203,7 @@ struct msdosfs_args {
mode_t mask; /* mask to be applied for msdosfs perms */
int flags; /* see below */
int magic; /* version number */
+ u_int16_t u2w[128]; /* Local->Unicode table */
};
/*
@@ -213,10 +215,11 @@ struct msdosfs_args {
#ifndef __FreeBSD__
#define MSDOSFSMNT_GEMDOSFS 8 /* This is a gemdos-flavour */
#endif
+#define MSDOSFSMNT_U2WTABLE 0x10 /* Local->Unicode table is loaded */
/* All flags above: */
#define MSDOSFSMNT_MNTOPT \
(MSDOSFSMNT_SHORTNAME|MSDOSFSMNT_LONGNAME|MSDOSFSMNT_NOWIN95 \
- /*|MSDOSFSMNT_GEMDOSFS*/)
+ /*|MSDOSFSMNT_GEMDOSFS*/|MSDOSFSMNT_U2WTABLE)
#define MSDOSFSMNT_RONLY 0x80000000 /* mounted read-only */
#define MSDOSFSMNT_WAITONFAT 0x40000000 /* mounted synchronous */
#define MSDOSFS_FATMIRROR 0x20000000 /* FAT is mirrored */
OpenPOWER on IntegriCloud