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.

84 lines
4.0 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -urN -x '*~' raidtools-1.00.3/mkraid.c raidtools-1.00.3-gcc-3.3.1/mkraid.c
  23. --- raidtools-1.00.3/mkraid.c 2003-01-15 09:58:25.000000000 +0100
  24. +++ raidtools-1.00.3-gcc-3.3.1/mkraid.c 2003-08-19 23:00:59.000000000 +0200
  25. @@ -171,32 +171,32 @@
  26. if (old_force_flag && (func == mkraid)) {
  27. fprintf(stderr,
  28. -"
  29. - WARNING!
  30. -
  31. - NOTE: if you are recovering a double-disk error or some other failure mode
  32. - that made your array unrunnable but data is still intact then it's strongly
  33. - recommended to use the lsraid utility and to read the lsraid HOWTO.
  34. -
  35. - If your RAID array holds useful and not yet backed up data then --force
  36. - and the hot-add/hot-remove functionality should be used with extreme care!
  37. - If your /etc/raidtab file is not in sync with the real array configuration,
  38. - then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
  39. - -f if the array is in degraded mode.
  40. -
  41. - If your /etc/raidtab file matches the real layout of on-disk data then
  42. - recreating the array will not hurt your data, but be aware of the risks
  43. - of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
  44. - resync of their mirror/parity blocks, which, if the raidtab is incorrect,
  45. - the resync will wipe out data irrecoverably. Also, if your array is in
  46. - degraded mode then the raidtab must match the degraded config exactly,
  47. - otherwise you'll get the same kind of data destruction during resync.
  48. - (see the failed-disk raidtab option.) You have been warned!
  49. -
  50. - [ If your array holds no data, or you have it all backed up, or if you
  51. - know precisely what you are doing and you still want to proceed then use
  52. - the --really-force (or -R) flag. ]
  53. -");
  54. +"\n"
  55. +" WARNING!\n"
  56. +"\n"
  57. +" NOTE: if you are recovering a double-disk error or some other failure mode\n"
  58. +" that made your array unrunnable but data is still intact then it's strongly\n"
  59. +" recommended to use the lsraid utility and to read the lsraid HOWTO.\n"
  60. +"\n"
  61. +" If your RAID array holds useful and not yet backed up data then --force\n"
  62. +" and the hot-add/hot-remove functionality should be used with extreme care!\n"
  63. +" If your /etc/raidtab file is not in sync with the real array configuration,\n"
  64. +" then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n"
  65. +" -f if the array is in degraded mode.\n"
  66. +"\n"
  67. +" If your /etc/raidtab file matches the real layout of on-disk data then\n"
  68. +" recreating the array will not hurt your data, but be aware of the risks\n"
  69. +" of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n"
  70. +" resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n"
  71. +" the resync will wipe out data irrecoverably. Also, if your array is in\n"
  72. +" degraded mode then the raidtab must match the degraded config exactly,\n"
  73. +" otherwise you'll get the same kind of data destruction during resync.\n"
  74. +" (see the failed-disk raidtab option.) You have been warned!\n"
  75. +"\n"
  76. +" [ If your array holds no data, or you have it all backed up, or if you\n"
  77. +" know precisely what you are doing and you still want to proceed then use\n"
  78. +" the --really-force (or -R) flag. ]\n"
  79. +"\n");
  80. return EXIT_FAILURE;
  81. }