Steal some space from fs_fsmnt to create fs_volname and fs_uuid. The volname

will be used to support volume names with the help of a GEOM module (to be
committed). uuid will be used to deal with conflicting volume names (which
doesn't work just yet).

Approved by:	mckusick@
This commit is contained in:
Gordon Tetlow 2003-01-08 22:53:54 +00:00
parent a828a2f58c
commit 291871da9e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108970

View file

@ -117,7 +117,13 @@
* in fs_fsmnt. MAXMNTLEN defines the amount of space allocated in
* the super block for this name.
*/
#define MAXMNTLEN 512
#define MAXMNTLEN 472
/*
* The volume name for this filesystem is maintained in fs_volname.
* MAXVOLLEN defines the length of the buffer allocated.
*/
#define MAXVOLLEN 32
/*
* There is a 128-byte region in the superblock reserved for in-core
@ -304,6 +310,8 @@ struct fs {
int8_t fs_ronly; /* mounted read-only flag */
int8_t fs_old_flags; /* old FS_ flags */
u_char fs_fsmnt[MAXMNTLEN]; /* name mounted on */
u_char fs_volname[MAXVOLLEN]; /* volume name */
u_int64_t fs_uuid; /* system-wide unique uid */
/* these fields retain the current block allocation info */
int32_t fs_cgrotor; /* last cg searched */
void *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */