Don't open peakfiles O_NONBLOCK or O_NOATIME.
authornick_m <mainsbridge@gmail.com>
Fri, 20 Mar 2015 14:02:51 +0000 (01:02 +1100)
committernick_m <mainsbridge@gmail.com>
Fri, 20 Mar 2015 14:02:51 +0000 (01:02 +1100)
O_NOATIME removed due to what appears to be a bug in fuse where open fails.
O_NONBLOCK was basically unjustifiable.

libs/ardour/audiosource.cc

index 7747a2b90eee73e5b7e1432bd09a18d7a0f99f0d..afa4698db2a7621d718597c74f0784603b727990 100644 (file)
@@ -355,13 +355,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, framecnt_t npeaks, framepos_t
 #endif
        framecnt_t zero_fill = 0;
 
-#ifdef PLATFORM_WINDOWS
-       ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY)); 
-#elif defined (__APPLE__)
-       ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY | O_NONBLOCK));
-#else
-       ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY | O_NOATIME | O_NONBLOCK));
-#endif
+       ScopedFileDescriptor sfd (::open (peakpath.c_str(), O_RDONLY));
 
        if (sfd < 0) {
                error << string_compose (_("Cannot open peakfile @ %1 for reading (%2)"), peakpath, strerror (errno)) << endmsg;