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.

18 lines
654 B

  1. --- e2fsprogs-old/misc/util.c Sat May 3 15:46:47 2003
  2. +++ e2fsprogs-1.34/misc/util.c Tue Sep 30 06:56:11 2003
  3. @@ -108,13 +108,8 @@
  4. #define MAJOR(dev) ((dev)>>8)
  5. #define MINOR(dev) ((dev) & 0xff)
  6. #endif
  7. -#ifndef SCSI_BLK_MAJOR
  8. -#define SCSI_BLK_MAJOR(M) ((M) == SCSI_DISK_MAJOR || (M) == SCSI_CDROM_MAJOR)
  9. -#endif
  10. - if (((MAJOR(s.st_rdev) == HD_MAJOR &&
  11. - MINOR(s.st_rdev)%64 == 0) ||
  12. - (SCSI_BLK_MAJOR(MAJOR(s.st_rdev)) &&
  13. - MINOR(s.st_rdev)%16 == 0))) {
  14. + if (MAJOR(s.st_rdev) == HD_MAJOR &&
  15. + MINOR(s.st_rdev)%64 == 0) {
  16. printf(_("%s is entire device, not just one partition!\n"),
  17. device);
  18. proceed_question();