--- src/sys/sys/stat.h 2005/08/02 13:03:55 1.7 +++ src/sys/sys/stat.h 2005/08/25 18:34:17 1.8 @@ -53,6 +53,14 @@ #define __dev_t dev_t #endif +/* + * stat structure notes: + * + * (1) st_fsmid (DragonFly only). This is a DragonFly supported field that + * is incremented if the represented file or directory changes or, for + * directories, if any change is made within the directory or any sub- + * directory, recursively. + */ struct stat { ino_t st_ino; /* inode's number */ nlink_t st_nlink; /* number of hard links */ @@ -80,9 +88,12 @@ struct stat { u_int32_t st_flags; /* user defined flags for file */ u_int32_t st_gen; /* file generation number */ int32_t st_lspare; - int64_t st_qspare[2]; + int64_t st_fsmid; /* recursive change detect */ + int64_t st_qspare; }; +#define _ST_FSMID_PRESENT_ + #undef __dev_t #ifndef _POSIX_SOURCE