https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c8875c182ac638a9aed62…
commit c8875c182ac638a9aed627ecaf39e30ab22daf40
Author: Benjamin Aerni <daprogramerforbatch(a)gmail.com>
AuthorDate: Mon Aug 5 12:18:23 2019 -0700
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Mon Aug 5 21:18:23 2019 +0200
[INF] Added BTRFS inf to remove unknown device
CORE-15928
---
media/inf/CMakeLists.txt | 1 +
media/inf/btrfs.inf | 111 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 112 insertions(+)
diff --git a/media/inf/CMakeLists.txt b/media/inf/CMakeLists.txt
index 8080d1ec91d..efa4d7d1193 100644
--- a/media/inf/CMakeLists.txt
+++ b/media/inf/CMakeLists.txt
@@ -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
index 00000000000..cc81318d515
--- /dev/null
+++ b/media/inf/btrfs.inf
@@ -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"