From 1471ece591da3aa58992f43a957655b3baf280d5 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Wed, 24 Jun 1992 00:24:07 -0800 Subject: [PATCH] add provision for short symbolic links SCCS-vsn: sys/ufs/ffs/dinode.h 7.17 SCCS-vsn: sys/ufs/ufs/dinode.h 7.17 --- usr/src/sys/ufs/ffs/dinode.h | 11 ++++++++++- usr/src/sys/ufs/ufs/dinode.h | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/usr/src/sys/ufs/ffs/dinode.h b/usr/src/sys/ufs/ffs/dinode.h index 8d2a400b26..d1c8347041 100644 --- a/usr/src/sys/ufs/ffs/dinode.h +++ b/usr/src/sys/ufs/ffs/dinode.h @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)dinode.h 7.16 (Berkeley) %G% + * @(#)dinode.h 7.17 (Berkeley) %G% */ /* @@ -42,7 +42,16 @@ struct dinode { long di_spare[2]; /* 120: reserved, currently unused */ }; +/* + * The di_db fields may be overlaid with other information for + * file types that do not have associated disk storage. Block + * and character devices overlay the first data block with their + * dev_t value. Short symbolic links place their path in the + * di_db area. + */ #define di_rdev di_db[0] +#define di_shortlink di_db +#define MAXSYMLINKLEN (NDADDR * sizeof(daddr_t)) /* file modes */ #define IFMT 0170000 /* mask of file type */ diff --git a/usr/src/sys/ufs/ufs/dinode.h b/usr/src/sys/ufs/ufs/dinode.h index 8d2a400b26..d1c8347041 100644 --- a/usr/src/sys/ufs/ufs/dinode.h +++ b/usr/src/sys/ufs/ufs/dinode.h @@ -4,7 +4,7 @@ * * %sccs.include.redist.c% * - * @(#)dinode.h 7.16 (Berkeley) %G% + * @(#)dinode.h 7.17 (Berkeley) %G% */ /* @@ -42,7 +42,16 @@ struct dinode { long di_spare[2]; /* 120: reserved, currently unused */ }; +/* + * The di_db fields may be overlaid with other information for + * file types that do not have associated disk storage. Block + * and character devices overlay the first data block with their + * dev_t value. Short symbolic links place their path in the + * di_db area. + */ #define di_rdev di_db[0] +#define di_shortlink di_db +#define MAXSYMLINKLEN (NDADDR * sizeof(daddr_t)) /* file modes */ #define IFMT 0170000 /* mask of file type */ -- 2.20.1