mirror of the now-defunct rocklinux.org
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.

81 lines
3.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/raidtools/gcc33-support.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  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. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -urN -x '*~' raidtools-1.00.3/mkraid.c raidtools-1.00.3-gcc-3.3.1/mkraid.c
  20. --- raidtools-1.00.3/mkraid.c 2003-01-15 09:58:25.000000000 +0100
  21. +++ raidtools-1.00.3-gcc-3.3.1/mkraid.c 2003-08-19 23:00:59.000000000 +0200
  22. @@ -171,32 +171,32 @@
  23. if (old_force_flag && (func == mkraid)) {
  24. fprintf(stderr,
  25. -"
  26. - WARNING!
  27. -
  28. - NOTE: if you are recovering a double-disk error or some other failure mode
  29. - that made your array unrunnable but data is still intact then it's strongly
  30. - recommended to use the lsraid utility and to read the lsraid HOWTO.
  31. -
  32. - If your RAID array holds useful and not yet backed up data then --force
  33. - and the hot-add/hot-remove functionality should be used with extreme care!
  34. - If your /etc/raidtab file is not in sync with the real array configuration,
  35. - then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
  36. - -f if the array is in degraded mode.
  37. -
  38. - If your /etc/raidtab file matches the real layout of on-disk data then
  39. - recreating the array will not hurt your data, but be aware of the risks
  40. - of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
  41. - resync of their mirror/parity blocks, which, if the raidtab is incorrect,
  42. - the resync will wipe out data irrecoverably. Also, if your array is in
  43. - degraded mode then the raidtab must match the degraded config exactly,
  44. - otherwise you'll get the same kind of data destruction during resync.
  45. - (see the failed-disk raidtab option.) You have been warned!
  46. -
  47. - [ If your array holds no data, or you have it all backed up, or if you
  48. - know precisely what you are doing and you still want to proceed then use
  49. - the --really-force (or -R) flag. ]
  50. -");
  51. +"\n"
  52. +" WARNING!\n"
  53. +"\n"
  54. +" NOTE: if you are recovering a double-disk error or some other failure mode\n"
  55. +" that made your array unrunnable but data is still intact then it's strongly\n"
  56. +" recommended to use the lsraid utility and to read the lsraid HOWTO.\n"
  57. +"\n"
  58. +" If your RAID array holds useful and not yet backed up data then --force\n"
  59. +" and the hot-add/hot-remove functionality should be used with extreme care!\n"
  60. +" If your /etc/raidtab file is not in sync with the real array configuration,\n"
  61. +" then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n"
  62. +" -f if the array is in degraded mode.\n"
  63. +"\n"
  64. +" If your /etc/raidtab file matches the real layout of on-disk data then\n"
  65. +" recreating the array will not hurt your data, but be aware of the risks\n"
  66. +" of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n"
  67. +" resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n"
  68. +" the resync will wipe out data irrecoverably. Also, if your array is in\n"
  69. +" degraded mode then the raidtab must match the degraded config exactly,\n"
  70. +" otherwise you'll get the same kind of data destruction during resync.\n"
  71. +" (see the failed-disk raidtab option.) You have been warned!\n"
  72. +"\n"
  73. +" [ If your array holds no data, or you have it all backed up, or if you\n"
  74. +" know precisely what you are doing and you still want to proceed then use\n"
  75. +" the --really-force (or -R) flag. ]\n"
  76. +"\n");
  77. return EXIT_FAILURE;
  78. }