*/
+#include "lib/version.h"
#include "lib/disk_writer_messages.h"
#include "lib/compose.hpp"
#include "lib/exceptions.h"
write (boost::filesystem::path dcp_path, string device)
try
{
-// ext4_dmask_set (DEBUG_ALL);
+ ext4_dmask_set (DEBUG_ALL);
/* We rely on static initialization for these */
static struct ext4_fs fs;
static struct ext4_mkfs_info info;
- info.block_size = 1024;
+ info.block_size = 4096;
info.inode_size = 128;
info.journal = false;
/* XXX: not sure if disk_id matters */
int r = ext4_mbr_write (bd, &parts, 0);
-
if (r) {
throw CopyError ("Failed to write MBR", r);
}
/* Do some basic sanity checks; this is a bit belt-and-braces but it can't hurt... */
#ifdef DCPOMATIC_OSX
- if (!starts_with(*device, "/dev/rdisk")) {
+ if (!starts_with(*device, "/dev/disk")) {
LOG_DISK ("Will not write to %1", *device);
nanomsg->send(DISK_WRITER_ERROR "\nRefusing to write to this drive\n1\n", LONG_TIMEOUT);
return true;
* redirect this to a file in /var/log
*/
dcpomatic_log.reset(new StdoutLog(LogEntry::TYPE_DISK));
- LOG_DISK_NC("dcpomatic_disk_writer started");
+ LOG_DISK("dcpomatic_disk_writer %1 started", dcpomatic_git_commit);
#else
/* XXX: this is a hack, but I expect we'll need logs and I'm not sure if there's
* a better place to put them.