Experimental use of /dev/rdisk rather than /dev/disk on macOS,
[dcpomatic.git] / src / lib / cross_osx.cc
index 6e8ef168c2c9bd84abdb1ee8ae46e9433438929e..66be376d4cc7264d26d76a8a62a7bb406f207668 100644 (file)
@@ -493,6 +493,16 @@ Drive::get ()
        return drives;
 }
 
+
+string
+Drive::device_for_write () const
+{
+       string w = _device;
+       boost::replace_all (w, "/dev/disk", "/dev/rdisk");
+       return w;
+}
+
+
 boost::filesystem::path
 config_path ()
 {