• Andrei Borzenkov's avatar
    hostdisk: fix device detection · 269a522c
    Andrei Borzenkov authored
    Condition was apparently reversed so GRUB assumed all devices were
    files. This later made it skip BLKFLSBUF ioctl on Linux which caused
    various page cache coherency issues. Observed were
    
    - failure to validate blocklist install (read content did not match
      just written)
    
    - failure to detect Linux MD on disk after online hot addition
      (GRUB got stale superblock)
    
    Closes: 46691
    269a522c