From 58878a05b7c7efeb816f4e3644aafaf30933a1b3 Mon Sep 17 00:00:00 2001 From: samm2 <samm2@4ea69e1a-61f1-4043-bf83-b5c94c648137> Date: Sat, 10 Oct 2009 12:34:08 +0000 Subject: [PATCH] freebsd never caches ATA identify sector, remove bogus defines git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2955 4ea69e1a-61f1-4043-bf83-b5c94c648137 --- smartmontools/os_freebsd.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/smartmontools/os_freebsd.cpp b/smartmontools/os_freebsd.cpp index b6e3b8047..9f6ac3913 100644 --- a/smartmontools/os_freebsd.cpp +++ b/smartmontools/os_freebsd.cpp @@ -128,12 +128,6 @@ extern smartmonctrl * con; // con->reportscsiioctl ///////////////////////////////////////////////////////////////////////////// -#ifdef HAVE_ATA_IDENTIFY_IS_CACHED -int ata_identify_is_cached(int fd); -#endif - -///////////////////////////////////////////////////////////////////////////// - namespace os_freebsd { // No need to publish anything, name provided for Doxygen ///////////////////////////////////////////////////////////////////////////// @@ -246,10 +240,6 @@ class freebsd_ata_device public: freebsd_ata_device(smart_interface * intf, const char * dev_name, const char * req_type); -#ifdef HAVE_ATA_IDENTIFY_IS_CACHED - virtual bool ata_identify_is_cached() const; -#endif - protected: virtual int ata_command_interface(smart_command_set command, int select, char * data); virtual int do_cmd(struct ata_ioc_request* request); @@ -513,14 +503,6 @@ int freebsd_ata_device::ata_command_interface(smart_command_set command, int sel return 0; } -#ifdef HAVE_ATA_IDENTIFY_IS_CACHED -bool freebsd_ata_device::ata_identify_is_cached() const -{ - return !!::ata_identify_is_cached(get_fd()); -} -#endif - - ///////////////////////////////////////////////////////////////////////////// /// Implement AMCC/3ware RAID support with old functions -- GitLab