Codebase list cciss-vol-status / e5fbff0
Update upstream source from tag 'upstream/1.12a' Update to upstream version '1.12a' with Debian dir 4989acd2a925f24ee14b7b55fdbc3f0b07241df1 Chris Hofstaedtler 3 years ago
7 changed file(s) with 251 addition(s) and 244 deletion(s). Raw diff Collapse all Expand all
139139 sending inquiries to every device returned by standard
140140 CISS_REPORT_LUNS to get the device type.
141141
142 Changes since 1.11
143
144 * Fixed Gen8 controller names
145 * Added support for Gen9 controllers
146 * Fixed some compilation warnings
147 * Print out Total Cache memory and Cache Ratio
148
149 Changes since 1.12
150
151 * Correct some logic, use bitwise instead of logical ands
0 # Makefile.in generated by automake 1.15 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
118118 am__v_at_1 =
119119 DEFAULT_INCLUDES = -I.@am__isrc@
120120 depcomp = $(SHELL) $(top_srcdir)/depcomp
121 am__depfiles_maybe = depfiles
121 am__maybe_remake_depfiles = depfiles
122 am__depfiles_remade = ./$(DEPDIR)/cciss_vol_status.Po
122123 am__mv = mv -f
123124 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
124125 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
326327 echo ' $(SHELL) ./config.status'; \
327328 $(SHELL) ./config.status;; \
328329 *) \
329 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
330 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
330 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
331 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
331332 esac;
332333
333334 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
406407 distclean-compile:
407408 -rm -f *.tab.c
408409
409 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cciss_vol_status.Po@am__quote@
410 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cciss_vol_status.Po@am__quote@ # am--include-marker
411
412 $(am__depfiles_remade):
413 @$(MKDIR_P) $(@D)
414 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
415
416 am--depfiles: $(am__depfiles_remade)
410417
411418 .c.o:
412419 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
522529 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
523530 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
524531
525 distdir: $(DISTFILES)
532 distdir: $(BUILT_SOURCES)
533 $(MAKE) $(AM_MAKEFLAGS) distdir-am
534
535 distdir-am: $(DISTFILES)
526536 $(am__remove_distdir)
527537 test -d "$(distdir)" || mkdir "$(distdir)"
528538 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
562572 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
563573 || chmod -R a+r "$(distdir)"
564574 dist-gzip: distdir
565 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
575 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
566576 $(am__post_remove_distdir)
567577
568578 dist-bzip2: distdir
588598 @echo WARNING: "Support for shar distribution archives is" \
589599 "deprecated." >&2
590600 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
591 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
601 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
592602 $(am__post_remove_distdir)
593603
594604 dist-zip: distdir
606616 distcheck: dist
607617 case '$(DIST_ARCHIVES)' in \
608618 *.tar.gz*) \
609 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
619 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
610620 *.tar.bz2*) \
611621 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
612622 *.tar.lz*) \
616626 *.tar.Z*) \
617627 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
618628 *.shar.gz*) \
619 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
629 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
620630 *.zip*) \
621631 unzip $(distdir).zip ;;\
622632 esac
728738
729739 distclean: distclean-am
730740 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
731 -rm -rf ./$(DEPDIR)
741 -rm -f ./$(DEPDIR)/cciss_vol_status.Po
732742 -rm -f Makefile
733743 distclean-am: clean-am distclean-compile distclean-generic \
734744 distclean-hdr distclean-tags
776786 maintainer-clean: maintainer-clean-am
777787 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
778788 -rm -rf $(top_srcdir)/autom4te.cache
779 -rm -rf ./$(DEPDIR)
789 -rm -f ./$(DEPDIR)/cciss_vol_status.Po
780790 -rm -f Makefile
781791 maintainer-clean-am: distclean-am maintainer-clean-generic
782792
798808
799809 .MAKE: all install-am install-strip
800810
801 .PHONY: CTAGS GTAGS TAGS all all-am am--refresh check check-am clean \
802 clean-binPROGRAMS clean-cscope clean-generic cscope \
803 cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
811 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \
812 check-am clean clean-binPROGRAMS clean-cscope clean-generic \
813 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
804814 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
805815 distcheck distclean distclean-compile distclean-generic \
806816 distclean-hdr distclean-tags distcleancheck distdir \
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3131 # generated from the m4 files accompanying Automake X.Y.
3232 # (This private macro should not be called outside this file.)
3333 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.15'
34 [am__api_version='1.16'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.15], [],
37 m4_if([$1], [1.16.1], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.15])dnl
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_CONDITIONAL -*- Autoconf -*-
111111
112 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
140140 Usually this means the macro was only invoked conditionally.]])
141141 fi])])
142142
143 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
144144 #
145145 # This file is free software; the Free Software Foundation
146146 # gives unlimited permission to copy and/or distribute it,
331331
332332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333333
334 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
339
334 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
340339
341340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
342341 # ------------------------------
345344 # Older Autoconf quotes --file arguments for eval, but not when files
346345 # are listed without --file. Let's play safe and only enable the eval
347346 # if we detect the quoting.
348 case $CONFIG_FILES in
349 *\'*) eval set x "$CONFIG_FILES" ;;
350 *) set x $CONFIG_FILES ;;
351 esac
347 # TODO: see whether this extra hack can be removed once we start
348 # requiring Autoconf 2.70 or later.
349 AS_CASE([$CONFIG_FILES],
350 [*\'*], [eval set x "$CONFIG_FILES"],
351 [*], [set x $CONFIG_FILES])
352352 shift
353 for mf
353 # Used to flag and report bootstrapping failures.
354 am_rc=0
355 for am_mf
354356 do
355357 # Strip MF so we end up with the name of the file.
356 mf=`echo "$mf" | sed -e 's/:.*$//'`
357 # Check whether this is an Automake generated Makefile or not.
358 # We used to match only the files named 'Makefile.in', but
359 # some people rename them; so instead we look at the file content.
360 # Grep'ing the first line is not enough: some people post-process
361 # each Makefile.in and add a new line on top of each file to say so.
362 # Grep'ing the whole file is not good either: AIX grep has a line
358 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
359 # Check whether this is an Automake generated Makefile which includes
360 # dependency-tracking related rules and includes.
361 # Grep'ing the whole file directly is not great: AIX grep has a line
363362 # limit of 2048, but all sed's we know have understand at least 4000.
364 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
365 dirpart=`AS_DIRNAME("$mf")`
366 else
367 continue
368 fi
369 # Extract the definition of DEPDIR, am__include, and am__quote
370 # from the Makefile without running 'make'.
371 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
372 test -z "$DEPDIR" && continue
373 am__include=`sed -n 's/^am__include = //p' < "$mf"`
374 test -z "$am__include" && continue
375 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
376 # Find all dependency output files, they are included files with
377 # $(DEPDIR) in their names. We invoke sed twice because it is the
378 # simplest approach to changing $(DEPDIR) to its actual value in the
379 # expansion.
380 for file in `sed -n "
381 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
382 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
383 # Make sure the directory exists.
384 test -f "$dirpart/$file" && continue
385 fdir=`AS_DIRNAME(["$file"])`
386 AS_MKDIR_P([$dirpart/$fdir])
387 # echo "creating $dirpart/$file"
388 echo '# dummy' > "$dirpart/$file"
389 done
363 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
364 || continue
365 am_dirpart=`AS_DIRNAME(["$am_mf"])`
366 am_filepart=`AS_BASENAME(["$am_mf"])`
367 AM_RUN_LOG([cd "$am_dirpart" \
368 && sed -e '/# am--include-marker/d' "$am_filepart" \
369 | $MAKE -f - am--depfiles]) || am_rc=$?
390370 done
371 if test $am_rc -ne 0; then
372 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
373 for automatic dependency tracking. Try re-running configure with the
374 '--disable-dependency-tracking' option to at least be able to build
375 the package (albeit without support for automatic dependency tracking).])
376 fi
377 AS_UNSET([am_dirpart])
378 AS_UNSET([am_filepart])
379 AS_UNSET([am_mf])
380 AS_UNSET([am_rc])
381 rm -f conftest-deps.mk
391382 }
392383 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
393384
396387 # -----------------------------
397388 # This macro should only be invoked once -- use via AC_REQUIRE.
398389 #
399 # This code is only required when automatic dependency tracking
400 # is enabled. FIXME. This creates each '.P' file that we will
401 # need in order to bootstrap the dependency handling code.
390 # This code is only required when automatic dependency tracking is enabled.
391 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
392 # order to bootstrap the dependency handling code.
402393 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
403394 [AC_CONFIG_COMMANDS([depfiles],
404395 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
405 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
406 ])
396 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
407397
408398 # Do all the work for Automake. -*- Autoconf -*-
409399
410 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
400 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
411401 #
412402 # This file is free software; the Free Software Foundation
413403 # gives unlimited permission to copy and/or distribute it,
494484 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
495485 # For better backward compatibility. To be removed once Automake 1.9.x
496486 # dies out for good. For more background, see:
497 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
487 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
488 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
499489 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
500490 # We need awk for the "check" target (and possibly the TAP driver). The
501491 # system "awk" is bad on some platforms.
562552 Aborting the configuration process, to ensure you take notice of the issue.
563553
564554 You can download and install GNU coreutils to get an 'rm' implementation
565 that behaves properly: <http://www.gnu.org/software/coreutils/>.
555 that behaves properly: <https://www.gnu.org/software/coreutils/>.
566556
567557 If you want to complete the configuration process using your problematic
568558 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
604594 done
605595 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
606596
607 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
597 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
608598 #
609599 # This file is free software; the Free Software Foundation
610600 # gives unlimited permission to copy and/or distribute it,
625615 fi
626616 AC_SUBST([install_sh])])
627617
628 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
618 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
629619 #
630620 # This file is free software; the Free Software Foundation
631621 # gives unlimited permission to copy and/or distribute it,
646636
647637 # Check to see how 'make' treats includes. -*- Autoconf -*-
648638
649 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
639 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
650640 #
651641 # This file is free software; the Free Software Foundation
652642 # gives unlimited permission to copy and/or distribute it,
654644
655645 # AM_MAKE_INCLUDE()
656646 # -----------------
657 # Check to see how make treats includes.
647 # Check whether make has an 'include' directive that can support all
648 # the idioms we need for our automatic dependency tracking code.
658649 AC_DEFUN([AM_MAKE_INCLUDE],
659 [am_make=${MAKE-make}
660 cat > confinc << 'END'
650 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
651 cat > confinc.mk << 'END'
661652 am__doit:
662 @echo this is the am__doit target
653 @echo this is the am__doit target >confinc.out
663654 .PHONY: am__doit
664655 END
665 # If we don't find an include directive, just comment out the code.
666 AC_MSG_CHECKING([for style of include used by $am_make])
667656 am__include="#"
668657 am__quote=
669 _am_result=none
670 # First try GNU make style include.
671 echo "include confinc" > confmf
672 # Ignore all kinds of additional output from 'make'.
673 case `$am_make -s -f confmf 2> /dev/null` in #(
674 *the\ am__doit\ target*)
675 am__include=include
676 am__quote=
677 _am_result=GNU
678 ;;
679 esac
680 # Now try BSD make style include.
681 if test "$am__include" = "#"; then
682 echo '.include "confinc"' > confmf
683 case `$am_make -s -f confmf 2> /dev/null` in #(
684 *the\ am__doit\ target*)
685 am__include=.include
686 am__quote="\""
687 _am_result=BSD
688 ;;
689 esac
690 fi
691 AC_SUBST([am__include])
692 AC_SUBST([am__quote])
693 AC_MSG_RESULT([$_am_result])
694 rm -f confinc confmf
695 ])
658 # BSD make does it like this.
659 echo '.include "confinc.mk" # ignored' > confmf.BSD
660 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
661 echo 'include confinc.mk # ignored' > confmf.GNU
662 _am_result=no
663 for s in GNU BSD; do
664 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
665 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
666 ['0:this is the am__doit target'],
667 [AS_CASE([$s],
668 [BSD], [am__include='.include' am__quote='"'],
669 [am__include='include' am__quote=''])])
670 if test "$am__include" != "#"; then
671 _am_result="yes ($s style)"
672 break
673 fi
674 done
675 rm -f confinc.* confmf.*
676 AC_MSG_RESULT([${_am_result}])
677 AC_SUBST([am__include])])
678 AC_SUBST([am__quote])])
696679
697680 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
698681
699 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
682 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
700683 #
701684 # This file is free software; the Free Software Foundation
702685 # gives unlimited permission to copy and/or distribute it,
735718
736719 # Helper functions for option handling. -*- Autoconf -*-
737720
738 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
721 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
739722 #
740723 # This file is free software; the Free Software Foundation
741724 # gives unlimited permission to copy and/or distribute it,
764747 AC_DEFUN([_AM_IF_OPTION],
765748 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
766749
767 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
750 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
768751 #
769752 # This file is free software; the Free Software Foundation
770753 # gives unlimited permission to copy and/or distribute it,
811794 # For backward compatibility.
812795 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
813796
814 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
797 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
815798 #
816799 # This file is free software; the Free Software Foundation
817800 # gives unlimited permission to copy and/or distribute it,
830813
831814 # Check to make sure that the build environment is sane. -*- Autoconf -*-
832815
833 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
816 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
834817 #
835818 # This file is free software; the Free Software Foundation
836819 # gives unlimited permission to copy and/or distribute it,
911894 rm -f conftest.file
912895 ])
913896
914 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
897 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
915898 #
916899 # This file is free software; the Free Software Foundation
917900 # gives unlimited permission to copy and/or distribute it,
971954 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
972955 ])
973956
974 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
957 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
975958 #
976959 # This file is free software; the Free Software Foundation
977960 # gives unlimited permission to copy and/or distribute it,
999982 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1000983 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1001984
1002 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
985 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
1003986 #
1004987 # This file is free software; the Free Software Foundation
1005988 # gives unlimited permission to copy and/or distribute it,
10181001
10191002 # Check how to create a tarball. -*- Autoconf -*-
10201003
1021 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
1004 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
10221005 #
10231006 # This file is free software; the Free Software Foundation
10241007 # gives unlimited permission to copy and/or distribute it,
2121 #if HAVE_CONFIG_H
2222 #include <config.h>
2323 #endif
24
25 #include <arpa/inet.h>
2426
2527 #define VERSION_NUMBER PACKAGE_VERSION
2628
636638 int big_map_support;
637639 int drives_per_scsi_bus;
638640
639 big_map_support = (id->controller_flags && (1<<7));
641 big_map_support = (id->controller_flags & (1<<7));
640642 drives_per_scsi_bus = id->drives_per_scsi_bus;;
641643
642644 /* if no big drive map support, & zero devices per scsi bus */
682684 copy_drive_field(model, device_data->drive_model, sizeof(device_data->drive_model));
683685 copy_drive_field(serial_no, device_data->drive_serial_no, sizeof(device_data->drive_serial_no));
684686 copy_drive_field(fw_rev, device_data->drive_fw_rev, sizeof(device_data->drive_fw_rev));
685 sprintf(tail, " connector %c%c box %d bay %d %40s %40s %8s",
687 sprintf(tail, " connector %c%c box %d bay %-2d %40s %40s %8s",
686688 device_data->phys_connector[0],
687689 device_data->phys_connector[1],
688690 device_data->phys_box_on_bus,
10001002 struct identify_physical_device device_data;
10011003 char location[300];
10021004
1003 big_map_support = (id->controller_flags && (1<<7));
1005 big_map_support = (id->controller_flags & (1<<7));
10041006 drives_per_scsi_bus = id->drives_per_scsi_bus;;
10051007
10061008 /* if no big drive map support, & zero devices per scsi bus */
10971099 break;
10981100 case 1: sprintf(raid_level, "RAID 4");
10991101 break;
1100 case 2: sprintf(raid_level, "RAID 1");
1102 case 2: sprintf(raid_level, "RAID 1(1+0)");
11011103 break;
11021104 case 3: sprintf(raid_level, "RAID 5");
11031105 break;
12031205 /* Eg. 6400 with internal card cage gives back bogus info */
12041206 /* for me for the serial number. */
12051207 strncpy(enclosure_sn, bus_param->chassis_sn, 40);
1206 enclosure_sn[41] = '\0';
1208 enclosure_sn[40] = '\0';
12071209 for (i = 40 - 1; i > 0; i--)
12081210 if (enclosure_sn[i] == ' ') {
12091211 enclosure_sn[i] = '\0';
22902292 return;
22912293
22922294 printf("%35s: %hu MiB\n", "Total cache memory", cache_config->total_memory_size);
2293 printf("%35s: %d% Read / %d% Write\n", "Cache Ratio", cache_config->percent_read_cache, cache_config->percent_write_cache);
2295 printf("%35s: %d%% Read / %d%% Write\n", "Cache Ratio", cache_config->percent_read_cache, cache_config->percent_write_cache);
22942296 printf("%35s: %hu MiB\n", "Read cache memory", cache_config->mem_for_read_cache);
22952297 printf("%35s: %hu MiB\n", "Write cache memory", cache_config->mem_for_write_cache);
22962298 printf("%35s: %s\n", "Write cache enabled",
24762478
24772479 static inline int bmic_supports_big_maps(struct identify_controller *id)
24782480 {
2479 return id->controller_flags && (1<<7);
2481 return id->controller_flags & (1<<7);
24802482 }
24812483
24822484 static int bmic_next_disk_bits(uint8_t *bits, int bitmapsize, int disk)
00 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
254254 echo "compile $scriptversion"
255255 exit $?
256256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
258259 func_cl_wrapper "$@" # Doesn't return...
259260 ;;
260261 esac
338339 # Local Variables:
339340 # mode: shell-script
340341 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
342343 # time-stamp-start: "scriptversion="
343344 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-time-zone: "UTC0"
345346 # time-stamp-end: "; # UTC"
346347 # End:
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for cciss_vol_status 1.12.
2 # Generated by GNU Autoconf 2.69 for cciss_vol_status 1.12a.
33 #
44 # Report bugs to <esc.storagedev@microsemi.com>.
55 #
579579 # Identity of this package.
580580 PACKAGE_NAME='cciss_vol_status'
581581 PACKAGE_TARNAME='cciss_vol_status'
582 PACKAGE_VERSION='1.12'
583 PACKAGE_STRING='cciss_vol_status 1.12'
582 PACKAGE_VERSION='1.12a'
583 PACKAGE_STRING='cciss_vol_status 1.12a'
584584 PACKAGE_BUGREPORT='esc.storagedev@microsemi.com'
585585 PACKAGE_URL=''
586586
635635 AMDEPBACKSLASH
636636 AMDEP_FALSE
637637 AMDEP_TRUE
638 am__quote
639638 am__include
640639 DEPDIR
641640 OBJEXT
709708 PACKAGE_TARNAME
710709 PACKAGE_NAME
711710 PATH_SEPARATOR
712 SHELL'
711 SHELL
712 am__quote'
713713 ac_subst_files=''
714714 ac_user_opts='
715715 enable_option_checking
12651265 # Omit some internal or obsolete options to make the list less imposing.
12661266 # This message is too long to be a string in the A/UX 3.1 sh.
12671267 cat <<_ACEOF
1268 \`configure' configures cciss_vol_status 1.12 to adapt to many kinds of systems.
1268 \`configure' configures cciss_vol_status 1.12a to adapt to many kinds of systems.
12691269
12701270 Usage: $0 [OPTION]... [VAR=VALUE]...
12711271
13321332
13331333 if test -n "$ac_init_help"; then
13341334 case $ac_init_help in
1335 short | recursive ) echo "Configuration of cciss_vol_status 1.12:";;
1335 short | recursive ) echo "Configuration of cciss_vol_status 1.12a:";;
13361336 esac
13371337 cat <<\_ACEOF
13381338
14231423 test -n "$ac_init_help" && exit $ac_status
14241424 if $ac_init_version; then
14251425 cat <<\_ACEOF
1426 cciss_vol_status configure 1.12
1426 cciss_vol_status configure 1.12a
14271427 generated by GNU Autoconf 2.69
14281428
14291429 Copyright (C) 2012 Free Software Foundation, Inc.
18461846 This file contains any messages produced by compilers while
18471847 running configure, to aid debugging if configure makes a mistake.
18481848
1849 It was created by cciss_vol_status $as_me 1.12, which was
1849 It was created by cciss_vol_status $as_me 1.12a, which was
18501850 generated by GNU Autoconf 2.69. Invocation command line was
18511851
18521852 $ $0 $@
21982198 ac_config_headers="$ac_config_headers config.h"
21992199
22002200
2201 am__api_version='1.15'
2201 am__api_version='1.16'
22022202
22032203 ac_aux_dir=
22042204 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
27132713
27142714 # Define the identity of the package.
27152715 PACKAGE='cciss_vol_status'
2716 VERSION='1.12'
2716 VERSION='1.12a'
27172717
27182718
27192719 cat >>confdefs.h <<_ACEOF
27432743
27442744 # For better backward compatibility. To be removed once Automake 1.9.x
27452745 # dies out for good. For more background, see:
2746 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2747 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2746 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2747 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
27482748 mkdir_p='$(MKDIR_P)'
27492749
27502750 # We need awk for the "check" target (and possibly the TAP driver). The
27952795 Aborting the configuration process, to ensure you take notice of the issue.
27962796
27972797 You can download and install GNU coreutils to get an 'rm' implementation
2798 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2798 that behaves properly: <https://www.gnu.org/software/coreutils/>.
27992799
28002800 If you want to complete the configuration process using your problematic
28012801 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
36583658
36593659 ac_config_commands="$ac_config_commands depfiles"
36603660
3661
3662 am_make=${MAKE-make}
3663 cat > confinc << 'END'
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3662 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3663 cat > confinc.mk << 'END'
36643664 am__doit:
3665 @echo this is the am__doit target
3665 @echo this is the am__doit target >confinc.out
36663666 .PHONY: am__doit
36673667 END
3668 # If we don't find an include directive, just comment out the code.
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3670 $as_echo_n "checking for style of include used by $am_make... " >&6; }
36713668 am__include="#"
36723669 am__quote=
3673 _am_result=none
3674 # First try GNU make style include.
3675 echo "include confinc" > confmf
3676 # Ignore all kinds of additional output from 'make'.
3677 case `$am_make -s -f confmf 2> /dev/null` in #(
3678 *the\ am__doit\ target*)
3679 am__include=include
3680 am__quote=
3681 _am_result=GNU
3682 ;;
3670 # BSD make does it like this.
3671 echo '.include "confinc.mk" # ignored' > confmf.BSD
3672 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3673 echo 'include confinc.mk # ignored' > confmf.GNU
3674 _am_result=no
3675 for s in GNU BSD; do
3676 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3677 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }
3681 case $?:`cat confinc.out 2>/dev/null` in #(
3682 '0:this is the am__doit target') :
3683 case $s in #(
3684 BSD) :
3685 am__include='.include' am__quote='"' ;; #(
3686 *) :
3687 am__include='include' am__quote='' ;;
3688 esac ;; #(
3689 *) :
3690 ;;
36833691 esac
3684 # Now try BSD make style include.
3685 if test "$am__include" = "#"; then
3686 echo '.include "confinc"' > confmf
3687 case `$am_make -s -f confmf 2> /dev/null` in #(
3688 *the\ am__doit\ target*)
3689 am__include=.include
3690 am__quote="\""
3691 _am_result=BSD
3692 ;;
3693 esac
3694 fi
3695
3696
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3698 $as_echo "$_am_result" >&6; }
3699 rm -f confinc confmf
3692 if test "$am__include" != "#"; then
3693 _am_result="yes ($s style)"
3694 break
3695 fi
3696 done
3697 rm -f confinc.* confmf.*
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3699 $as_echo "${_am_result}" >&6; }
37003700
37013701 # Check whether --enable-dependency-tracking was given.
37023702 if test "${enable_dependency_tracking+set}" = set; then :
51385138 # report actual input values of CONFIG_FILES etc. instead of their
51395139 # values after options handling.
51405140 ac_log="
5141 This file was extended by cciss_vol_status $as_me 1.12, which was
5141 This file was extended by cciss_vol_status $as_me 1.12a, which was
51425142 generated by GNU Autoconf 2.69. Invocation command line was
51435143
51445144 CONFIG_FILES = $CONFIG_FILES
52045204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52055205 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
52065206 ac_cs_version="\\
5207 cciss_vol_status config.status 1.12
5207 cciss_vol_status config.status 1.12a
52085208 configured by $0, generated by GNU Autoconf 2.69,
52095209 with options \\"\$ac_cs_config\\"
52105210
53235323 #
53245324 # INIT-COMMANDS
53255325 #
5326 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5326 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
53275327
53285328 _ACEOF
53295329
59355935 # Older Autoconf quotes --file arguments for eval, but not when files
59365936 # are listed without --file. Let's play safe and only enable the eval
59375937 # if we detect the quoting.
5938 case $CONFIG_FILES in
5939 *\'*) eval set x "$CONFIG_FILES" ;;
5940 *) set x $CONFIG_FILES ;;
5941 esac
5938 # TODO: see whether this extra hack can be removed once we start
5939 # requiring Autoconf 2.70 or later.
5940 case $CONFIG_FILES in #(
5941 *\'*) :
5942 eval set x "$CONFIG_FILES" ;; #(
5943 *) :
5944 set x $CONFIG_FILES ;; #(
5945 *) :
5946 ;;
5947 esac
59425948 shift
5943 for mf
5949 # Used to flag and report bootstrapping failures.
5950 am_rc=0
5951 for am_mf
59445952 do
59455953 # Strip MF so we end up with the name of the file.
5946 mf=`echo "$mf" | sed -e 's/:.*$//'`
5947 # Check whether this is an Automake generated Makefile or not.
5948 # We used to match only the files named 'Makefile.in', but
5949 # some people rename them; so instead we look at the file content.
5950 # Grep'ing the first line is not enough: some people post-process
5951 # each Makefile.in and add a new line on top of each file to say so.
5952 # Grep'ing the whole file is not good either: AIX grep has a line
5954 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
5955 # Check whether this is an Automake generated Makefile which includes
5956 # dependency-tracking related rules and includes.
5957 # Grep'ing the whole file directly is not great: AIX grep has a line
59535958 # limit of 2048, but all sed's we know have understand at least 4000.
5954 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5955 dirpart=`$as_dirname -- "$mf" ||
5956 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5957 X"$mf" : 'X\(//\)[^/]' \| \
5958 X"$mf" : 'X\(//\)$' \| \
5959 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5960 $as_echo X"$mf" |
5959 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
5960 || continue
5961 am_dirpart=`$as_dirname -- "$am_mf" ||
5962 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5963 X"$am_mf" : 'X\(//\)[^/]' \| \
5964 X"$am_mf" : 'X\(//\)$' \| \
5965 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5966 $as_echo X"$am_mf" |
59615967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
59625968 s//\1/
59635969 q
59755981 q
59765982 }
59775983 s/.*/./; q'`
5978 else
5979 continue
5980 fi
5981 # Extract the definition of DEPDIR, am__include, and am__quote
5982 # from the Makefile without running 'make'.
5983 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5984 test -z "$DEPDIR" && continue
5985 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5986 test -z "$am__include" && continue
5987 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5988 # Find all dependency output files, they are included files with
5989 # $(DEPDIR) in their names. We invoke sed twice because it is the
5990 # simplest approach to changing $(DEPDIR) to its actual value in the
5991 # expansion.
5992 for file in `sed -n "
5993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
5995 # Make sure the directory exists.
5996 test -f "$dirpart/$file" && continue
5997 fdir=`$as_dirname -- "$file" ||
5998 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5999 X"$file" : 'X\(//\)[^/]' \| \
6000 X"$file" : 'X\(//\)$' \| \
6001 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6002 $as_echo X"$file" |
6003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5984 am_filepart=`$as_basename -- "$am_mf" ||
5985 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
5986 X"$am_mf" : 'X\(//\)$' \| \
5987 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
5988 $as_echo X/"$am_mf" |
5989 sed '/^.*\/\([^/][^/]*\)\/*$/{
60045990 s//\1/
60055991 q
60065992 }
6007 /^X\(\/\/\)[^/].*/{
5993 /^X\/\(\/\/\)$/{
60085994 s//\1/
60095995 q
60105996 }
6011 /^X\(\/\/\)$/{
6012 s//\1/
6013 q
6014 }
6015 /^X\(\/\).*/{
5997 /^X\/\(\/\).*/{
60165998 s//\1/
60175999 q
60186000 }
60196001 s/.*/./; q'`
6020 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6021 # echo "creating $dirpart/$file"
6022 echo '# dummy' > "$dirpart/$file"
6023 done
6002 { echo "$as_me:$LINENO: cd "$am_dirpart" \
6003 && sed -e '/# am--include-marker/d' "$am_filepart" \
6004 | $MAKE -f - am--depfiles" >&5
6005 (cd "$am_dirpart" \
6006 && sed -e '/# am--include-marker/d' "$am_filepart" \
6007 | $MAKE -f - am--depfiles) >&5 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } || am_rc=$?
60246011 done
6012 if test $am_rc -ne 0; then
6013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6015 as_fn_error $? "Something went wrong bootstrapping makefile fragments
6016 for automatic dependency tracking. Try re-running configure with the
6017 '--disable-dependency-tracking' option to at least be able to build
6018 the package (albeit without support for automatic dependency tracking).
6019 See \`config.log' for more details" "$LINENO" 5; }
6020 fi
6021 { am_dirpart=; unset am_dirpart;}
6022 { am_filepart=; unset am_filepart;}
6023 { am_mf=; unset am_mf;}
6024 { am_rc=; unset am_rc;}
6025 rm -f conftest-deps.mk
60256026 }
60266027 ;;
60276028
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.59)
4 AC_INIT(cciss_vol_status, 1.12, esc.storagedev@microsemi.com)
4 AC_INIT(cciss_vol_status, 1.12a, esc.storagedev@microsemi.com)
55 AC_CONFIG_SRCDIR([cciss_vol_status.c])
66 AC_CONFIG_HEADER([config.h])
77