initial UDF support for OSX/Linux targets
authoradouble42 <adouble@screwjackllc>
Fri, 13 Oct 2017 19:53:43 +0000 (15:53 -0400)
committeradouble42 <adouble@screwjackllc>
Fri, 13 Oct 2017 19:53:43 +0000 (15:53 -0400)
Core/VolumeCreator.h
Main/Forms/VolumeCreationWizard.cpp
Main/Forms/VolumeFormatOptionsWizardPage.cpp
Main/TextUserInterface.cpp

index 4af6a73..7d5d5c3 100644 (file)
@@ -42,6 +42,7 @@ namespace nemesis
                                Ext2,
                                Ext3,
                                Ext4,
+                               UDF,
                                MacOsExt,
                                UFS
                        };
index ff983e8..b7b2899 100644 (file)
@@ -422,6 +422,12 @@ namespace nemesis
                                {
                                case VolumeCreationOptions::FilesystemType::Ext2:               fsFormatter = "mkfs.ext2"; break;
                                case VolumeCreationOptions::FilesystemType::Ext3:               fsFormatter = "mkfs.ext3"; break;
+#ifdef TC_LINUX
+                               case VolumeCreationOptions::FilesystemType::UDF:        fsFormatter = "mkudffs"; break;
+#endif
+#ifdef TC_MACOSX
+                               case VolumeCreationOptions::FilesystemType::UDF:        fsFormatter = "newfs_udf"; break;
+#endif
 #ifdef TC_MACOSX
                                case VolumeCreationOptions::FilesystemType::exFAT:      fsFormatter = "newfs_exfat"; break;
 #endif
index cb87ab0..fb4a475 100644 (file)
@@ -43,8 +43,9 @@ namespace nemesis
                FilesystemTypeChoice->Append (L"Linux Ext3",            (void *) VolumeCreationOptions::FilesystemType::Ext3);
 //             FilesystemTypeChoice->Append (L"Linux Ext4",            (void *) VolumeCreationOptions::FilesystemType::Ext4);
 //             FilesystemTypeChoice->Append (L"NTFS",                          (void *) VolumeCreationOptions::FilesystemType::NTFS);
+#elif defined (TC_LINUX) || defined (TC_MACOSX)
+               FilesystemTypeChoice->Append (L"UDF",                           (void *) VolumeCreationOptions::FilesystemType::UDF);
 #endif
-
                if (!disable32bitFilesystems && volumeSize <= TC_MAX_FAT_SECTOR_COUNT * sectorSize)
                        SetFilesystemType (VolumeCreationOptions::FilesystemType::FAT);
                else
index 507da8f..f49e41b 100644 (file)
@@ -785,6 +785,12 @@ namespace nemesis
                        case VolumeCreationOptions::FilesystemType::Ext3:               fsFormatter = "mkfs.ext3"; break;
                        case VolumeCreationOptions::FilesystemType::Ext4:               fsFormatter = "mkfs.ext4"; break;
                        case VolumeCreationOptions::FilesystemType::MacOsExt:   fsFormatter = "newfs_hfs"; break;
+#ifdef TC_MACOSX
+                       case VolumeCreationOptions::FilesystemType::MacOsExt:   fsFormatter = "newfs_udf"; break;
+#endif
+#ifdef TC_LINUX
+                       case VolumeCreationOptions::FilesystemType::MacOsExt:   fsFormatter = "mkudffs"; break;
+#endif
                        case VolumeCreationOptions::FilesystemType::UFS:                fsFormatter = "newfs" ; break;
                        default: throw ParameterIncorrect (SRC_POS);
                        }
This page took 0.216328 seconds and 4 git commands to generate. Download a nemesis OSX (sierra+high sierra, tested/working) binary, with fuse-ext3 via e2fsprogs, at this link. application and installer are signed by screwjack, llc. must install fuse with macFUSE layer first.