source: scripts/patches/e2fsprogs-1.34-2.6.0hdr-fix.patch@ bd312fe2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bd312fe2 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 738 bytes
  • misc/util.c

    diff -X /usr/src/dontdiff -urN e2fsprogs-old/misc/util.c e2fsprogs-1.34/misc/util.c
    old new  
    108108#define MAJOR(dev)      ((dev)>>8)
    109109#define MINOR(dev)      ((dev) & 0xff)
    110110#endif
    111 #ifndef SCSI_BLK_MAJOR
    112 #define SCSI_BLK_MAJOR(M)  ((M) == SCSI_DISK_MAJOR || (M) == SCSI_CDROM_MAJOR)
    113 #endif
    114         if (((MAJOR(s.st_rdev) == HD_MAJOR &&
    115               MINOR(s.st_rdev)%64 == 0) ||
    116              (SCSI_BLK_MAJOR(MAJOR(s.st_rdev)) &&
    117               MINOR(s.st_rdev)%16 == 0))) {
     111        if (MAJOR(s.st_rdev) == HD_MAJOR &&
     112            MINOR(s.st_rdev)%64 == 0) {
    118113                printf(_("%s is entire device, not just one partition!\n"),
    119114                       device);
    120115                proceed_question();
Note: See TracBrowser for help on using the repository browser.