Ticket #1527: megaraid_rdonly.diff

File megaraid_rdonly.diff, 517 bytes (added by charlotte, 3 years ago)
  • smartmontools/os_linux.cpp

    diff --git a/smartmontools/os_linux.cpp b/smartmontools/os_linux.cpp
    index 1f42574e..2bdae685 100644
    a b private:  
    12161216linux_megaraid_device::linux_megaraid_device(smart_interface *intf,
    12171217  const char *dev_name, unsigned int tgt)
    12181218 : smart_device(intf, dev_name, "megaraid", "megaraid"),
    1219    linux_smart_device(O_RDWR | O_NONBLOCK),
     1219   linux_smart_device(O_RDONLY | O_NONBLOCK),
    12201220   m_disknum(tgt), m_hba(0),
    12211221   m_fd(-1), pt_cmd(0)
    12221222{