solaris-fs-rolled-20030328
authorDerrick Brashear <shadow@dementia.org>
Fri, 28 Mar 2003 21:26:20 +0000 (21:26 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 28 Mar 2003 21:26:20 +0000 (21:26 +0000)
for solaris 9 u2

acconfig.h
acinclude.m4
src/cf/solaris-fs-rolled.m4 [new file with mode: 0644]
src/vfsck/setup.c

index ade7616..1933bb1 100644 (file)
@@ -41,6 +41,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #undef RECALC_SIGPENDING_TAKES_VOID
 #undef STRUCT_ADDRESS_SPACE_HAS_GFP_MASK
 #undef STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
+#undef STRUCT_FS_HAS_FS_ROLLED
 #undef STRUCT_INODE_HAS_I_DEVICES
 #undef STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS
 #undef STRUCT_INODE_HAS_I_TRUNCATE_SEM
index 57b9c8d..26c47e4 100644 (file)
@@ -268,6 +268,7 @@ case $system in
                 AC_MSG_RESULT(sun4)
                SOLARIS_UFSVFS_HAS_DQRWLOCK
                SOLARIS_PROC_HAS_P_COREFILE
+               SOLARIS_FS_HAS_FS_ROLLED
                 ;;
         *-sunos*)
                MKAFS_OSTYPE=SUNOS
diff --git a/src/cf/solaris-fs-rolled.m4 b/src/cf/solaris-fs-rolled.m4
new file mode 100644 (file)
index 0000000..01d78d0
--- /dev/null
@@ -0,0 +1,16 @@
+AC_DEFUN(SOLARIS_FS_HAS_FS_ROLLED, [
+AC_MSG_CHECKING(for fs_rolled in struct proc)
+AC_CACHE_VAL(ac_cv_solaris_fs_has_fs_rolled,
+[
+AC_TRY_COMPILE(
+[#include <sys/fs/ufs_fs.h>],
+[struct fs _fs;
+(void) _fs.fs_rolled;], 
+ac_cv_solaris_fs_has_fs_rolled=yes,
+ac_cv_solaris_fs_has_fs_rolled=no)])
+AC_MSG_RESULT($ac_cv_solaris_fs_has_fs_rolled)
+if test "$ac_cv_solaris_fs_has_fs_rolled" = "yes"; then
+  AC_DEFINE(STRUCT_FS_HAS_FS_ROLLED, 1, [define if struct fs has fs_rolled])
+fi
+])
+
index a9afae9..a7f30c7 100644 (file)
@@ -673,7 +673,11 @@ readsb(listerr)
                return (1);
        }
        altsblock.fs_link = sblock.fs_link;
+#ifdef STRUCT_FS_HAS_FS_ROLLED
+       altsblock.fs_rolled = sblock.fs_rolled;
+#else
        altsblock.fs_rlink = sblock.fs_rlink;
+#endif
        altsblock.fs_time = sblock.fs_time;
        altsblock.fs_cstotal = sblock.fs_cstotal;
        altsblock.fs_cgrotor = sblock.fs_cgrotor;