diff options
author | gordon <gordon@FreeBSD.org> | 2003-01-08 22:53:54 +0000 |
---|---|---|
committer | gordon <gordon@FreeBSD.org> | 2003-01-08 22:53:54 +0000 |
commit | f1018f664a3b76039b6fa6e7169dfd9de4329278 (patch) | |
tree | b8d2d17dc3101e495b6c3952e571a34966a4f9d9 /sys | |
parent | 60eec7d75613939a002539cfeef8885268bd6190 (diff) | |
download | FreeBSD-src-f1018f664a3b76039b6fa6e7169dfd9de4329278.zip FreeBSD-src-f1018f664a3b76039b6fa6e7169dfd9de4329278.tar.gz |
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ffs/fs.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h index 0dc495e..ddd31da 100644 --- a/sys/ufs/ffs/fs.h +++ b/sys/ufs/ffs/fs.h @@ -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 */ |