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.

79 lines
3.8 KiB

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