OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
3.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../raidtools/gcc33-support.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. # --- SDE-COPYRIGHT-NOTE-END ---
  18. diff -urN -x '*~' raidtools-1.00.3/mkraid.c raidtools-1.00.3-gcc-3.3.1/mkraid.c
  19. --- raidtools-1.00.3/mkraid.c 2003-01-15 09:58:25.000000000 +0100
  20. +++ raidtools-1.00.3-gcc-3.3.1/mkraid.c 2003-08-19 23:00:59.000000000 +0200
  21. @@ -171,32 +171,32 @@
  22. if (old_force_flag && (func == mkraid)) {
  23. fprintf(stderr,
  24. -"
  25. - WARNING!
  26. -
  27. - NOTE: if you are recovering a double-disk error or some other failure mode
  28. - that made your array unrunnable but data is still intact then it's strongly
  29. - recommended to use the lsraid utility and to read the lsraid HOWTO.
  30. -
  31. - If your RAID array holds useful and not yet backed up data then --force
  32. - and the hot-add/hot-remove functionality should be used with extreme care!
  33. - If your /etc/raidtab file is not in sync with the real array configuration,
  34. - then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
  35. - -f if the array is in degraded mode.
  36. -
  37. - If your /etc/raidtab file matches the real layout of on-disk data then
  38. - recreating the array will not hurt your data, but be aware of the risks
  39. - of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
  40. - resync of their mirror/parity blocks, which, if the raidtab is incorrect,
  41. - the resync will wipe out data irrecoverably. Also, if your array is in
  42. - degraded mode then the raidtab must match the degraded config exactly,
  43. - otherwise you'll get the same kind of data destruction during resync.
  44. - (see the failed-disk raidtab option.) You have been warned!
  45. -
  46. - [ If your array holds no data, or you have it all backed up, or if you
  47. - know precisely what you are doing and you still want to proceed then use
  48. - the --really-force (or -R) flag. ]
  49. -");
  50. +"\n"
  51. +" WARNING!\n"
  52. +"\n"
  53. +" NOTE: if you are recovering a double-disk error or some other failure mode\n"
  54. +" that made your array unrunnable but data is still intact then it's strongly\n"
  55. +" recommended to use the lsraid utility and to read the lsraid HOWTO.\n"
  56. +"\n"
  57. +" If your RAID array holds useful and not yet backed up data then --force\n"
  58. +" and the hot-add/hot-remove functionality should be used with extreme care!\n"
  59. +" If your /etc/raidtab file is not in sync with the real array configuration,\n"
  60. +" then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n"
  61. +" -f if the array is in degraded mode.\n"
  62. +"\n"
  63. +" If your /etc/raidtab file matches the real layout of on-disk data then\n"
  64. +" recreating the array will not hurt your data, but be aware of the risks\n"
  65. +" of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n"
  66. +" resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n"
  67. +" the resync will wipe out data irrecoverably. Also, if your array is in\n"
  68. +" degraded mode then the raidtab must match the degraded config exactly,\n"
  69. +" otherwise you'll get the same kind of data destruction during resync.\n"
  70. +" (see the failed-disk raidtab option.) You have been warned!\n"
  71. +"\n"
  72. +" [ If your array holds no data, or you have it all backed up, or if you\n"
  73. +" know precisely what you are doing and you still want to proceed then use\n"
  74. +" the --really-force (or -R) flag. ]\n"
  75. +"\n");
  76. return EXIT_FAILURE;
  77. }