[INF] Added BTRFS inf to remove unknown device
authorBenjamin Aerni <daprogramerforbatch@gmail.com>
Mon, 5 Aug 2019 19:18:23 +0000 (12:18 -0700)
committerPierre Schweitzer <pierre@reactos.org>
Mon, 5 Aug 2019 19:18:23 +0000 (21:18 +0200)
CORE-15928

media/inf/CMakeLists.txt
media/inf/btrfs.inf [new file with mode: 0644]

index 8080d1e..efa4d7d 100644 (file)
@@ -5,6 +5,7 @@ list(APPEND INF_FILES
     battery.inf
     bda.inf
     bth.inf
+    btrfs.inf
     c_image.inf
     cdrom.inf
     cpu.inf
diff --git a/media/inf/btrfs.inf b/media/inf/btrfs.inf
new file mode 100644 (file)
index 0000000..cc81318
--- /dev/null
@@ -0,0 +1,111 @@
+;;;
+;;; WinBtrfs
+;;;
+;;;
+;;; Copyright (c) 2016-19 Mark Harmstone
+;;;
+
+[Version]
+Signature   = "$Windows NT$"
+Class       = Volume
+ClassGuid   = {71a27cdd-812a-11d0-bec7-08002be2092f}
+Provider    = %Me%
+DriverVer   = 06/08/2019,1.3.0.0
+CatalogFile = btrfs.cat
+
+[DestinationDirs]
+DefaultDestDir          = 12
+Btrfs.DriverFiles       = 12            ;%windir%\system32\drivers
+Btrfs.DllFiles          = 11            ;%windir%\system32
+
+;;
+;; Default install sections
+;;
+
+[DefaultInstall]
+OptionDesc  = %ServiceDescription%
+CopyFiles   = Btrfs.DriverFiles,Btrfs.DllFiles
+RegisterDlls = shellbtrfs
+CopyINF     = btrfs.inf
+
+[DefaultInstall.Services]
+AddService  = %ServiceName%,0x802,Btrfs.Service
+
+[Manufacturer]
+%Me%=Standard,NTamd64,NTx86
+
+[Standard.NTamd64]
+%VolumeName% = Btrfs_Install, BtrfsVolume
+%ControllerName% = Btrfs_Install, ROOT\btrfs
+%ControllerName% = Btrfs_Install, ROOT\btrfs
+%ControllerName% = Btrfs_Install, DETECTED\BTRFS
+
+[Standard.NTx86]
+%VolumeName% = Btrfs_Install, BtrfsVolume
+%ControllerName% = Btrfs_Install, ROOT\btrfs
+%ControllerName% = Btrfs_Install, DETECTED\BTRFS
+
+[Btrfs_Install]
+OptionDesc   = %ServiceDescription%
+
+[Btrfs_Install.Services]
+AddService  = %ServiceName%,2,Btrfs.Service
+
+;;
+;; Default uninstall sections
+;;
+
+[DefaultUninstall]
+UnregisterDlls = shellbtrfs
+DelFiles   = Btrfs.DriverFiles,Btrfs.DllFiles
+
+[DefaultUninstall.Services]
+DelService = %ServiceName%,0x200      ;Ensure service is stopped before deleting
+
+;
+; Services Section
+;
+
+[Btrfs.Service]
+DisplayName      = %ServiceName%
+Description      = %ServiceDescription%
+ServiceBinary    = %12%\%DriverName%.sys    ;%windir%\system32\drivers\
+ServiceType      = 1
+StartType        = 1                        ;SERVICE_SYSTEM_START
+ErrorControl     = 1
+LoadOrderGroup   = "File System"
+
+[shellbtrfs]
+11,,shellbtrfs.dll,1
+
+;
+; Copy Files
+;
+
+[Btrfs.DriverFiles]
+%DriverName%.sys
+
+[Btrfs.DllFiles]
+shellbtrfs.dll
+ubtrfs.dll
+mkbtrfs.exe
+
+
+[SourceDisksNames.x86]
+1 = %DiskId1%,,,\x86
+
+[SourceDisksNames.amd64]
+1 = %DiskId1%,,,\x64
+
+;;
+;; String Section
+;;
+
+[Strings]
+Me                      = "Mark Harmstone"
+ServiceDescription      = "Btrfs driver"
+ServiceName             = "btrfs"
+DriverName              = "btrfs"
+DiskId1                 = "Btrfs Device Installation Disk"
+VolumeName              = "Btrfs volume"
+ControllerName          = "Btrfs controller"