[haiku-commits] haiku: hrev52818 - src/data/mime_db/application

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 29 Jan 2019 02:28:37 -0500 (EST)

hrev52818 adds 1 changeset to branch 'master'
old head: 434c34711184eaccfd716afb0187d642e2208ce9
new head: 2f8e8732e13c426a28f955f1eecc6356038b1d18
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=2f8e8732e13c+%5E434c34711184

----------------------------------------------------------------------------

2f8e8732e13c: mime_db Add additional disk image types
  
        *       Two disk image types added to the mime_db with sniffer rules
  
                1       x-intel-image as a generic type for images using an 
intel
                partition style boot sector
                2       x-ntfs-image a specific type for ntfs format image files
  
                Default handler for these types is set to mountvolume, which
                handles ntfs and fat images detected by these sniffers,
                in the same manner as bfs images detected by x-bfs-image.
  
  Change-Id: I994fa23bcc988c40a098aa106587e75d9e1f9b4b
  Reviewed-on: https://review.haiku-os.org/c/964
  Reviewed-by: Stephan Aßmus <superstippi@xxxxxx>

                                      [ Rob Gill <rrobgill@xxxxxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev52818
Commit:      2f8e8732e13c426a28f955f1eecc6356038b1d18
URL:         https://git.haiku-os.org/haiku/commit/?id=2f8e8732e13c
Author:      Rob Gill <rrobgill@xxxxxxxxxxxxxx>
Date:        Tue Jan 29 06:17:09 2019 UTC
Committer:   Stephan Aßmus <superstippi@xxxxxx>
Commit-Date: Tue Jan 29 07:28:35 2019 UTC

----------------------------------------------------------------------------

2 files changed, 70 insertions(+)
src/data/mime_db/application/x-intel-image | 35 ++++++++++++++++++++++++++
src/data/mime_db/application/x-ntfs-image  | 35 ++++++++++++++++++++++++++

----------------------------------------------------------------------------

diff --git a/src/data/mime_db/application/x-intel-image 
b/src/data/mime_db/application/x-intel-image
new file mode 100644
index 0000000000..a7ba831518
--- /dev/null
+++ b/src/data/mime_db/application/x-intel-image
@@ -0,0 +1,35 @@
+
+resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
+
+resource(1, "META:TYPE") "application/x-intel-image";
+
+resource(2, "META:S:DESC") #'MSDC' "Disk image";
+
+resource(3, "META:L:DESC") #'MLDC' "Generic Intel® partition disk image";
+
+resource(4, "META:SNIFF_RULE") "0.40 [510:511] (0x55aa)";
+
+resource(5, "META:EXTENS") message(234) {
+       "extensions" = "image",
+       "extensions" = "img",
+       "extensions" = "mmc",
+       "type" = "application/x-intel-image"
+};
+
+resource(6, "META:PREF_APP") #'MSIG' "application/x-vnd.haiku-mountvolume";
+
+resource(7, "META:ICON") #'VICN' array {
+       $"6E636966080500040054020006023B019B3AA235BC243E3C71D248D17C498491"
+       $"00E7BB8FFFC99867020006023BA71138D0C8BBF4B83E90E64AED7C485BD7008A"
+       $"561DFFB57A3A02000602BB6FCBB8D4C839AA71BC3992492FF148D96A00FFC790"
+       $"FFFFF4EA0366330003FFDFC003AD7238110A0626543A464C455C4B4C603E600A"
+       $"063822262E264F3C5A4E484E2A0A04262E264F3C5A3C370A043C373C5A4E484E"
+       $"2A0A043822262E3C374E2A0A042832284E3A573A390A042A4D2B4638492A430A"
+       $"042A4D365238492B460A042A4D3854384936520A042E4CBB2BC5D3BB2BC5072E"
+       $"4A0A042C49344D344B2C470A042A352A402B38383B0A0436442A403846383B0A"
+       $"042B382A403644383B0A042EBE672EBF33BB2DC03FBB2DBF730A042CBD292CBD"
+       $"F5343F343D08022A4E2A540E0A010100000A0001101001178420040A00011030"
+       $"302901178420040A00011030401B01178420040A0001011001178400040A0201"
+       $"02000A030103000A040104000A050105000A06020B06000A0202070D000A0702"
+       $"0C08000A0302090E0815FF0A00020A0F0815FF"
+};
diff --git a/src/data/mime_db/application/x-ntfs-image 
b/src/data/mime_db/application/x-ntfs-image
new file mode 100644
index 0000000000..e1266866a0
--- /dev/null
+++ b/src/data/mime_db/application/x-ntfs-image
@@ -0,0 +1,35 @@
+
+resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
+
+resource(1, "META:TYPE") "application/x-ntfs-image";
+
+resource(2, "META:S:DESC") #'MSDC' "NTFS Disk image";
+
+resource(3, "META:L:DESC") #'MLDC' "Microsoft® NTFS Disk image";
+
+resource(4, "META:SNIFF_RULE") "0.50 [3:6] (\"NTFS\") ([510:511] 0x55aa)";
+
+resource(5, "META:EXTENS") message(234) {
+       "extensions" = "image",
+       "extensions" = "img",
+       "extensions" = "mmc",
+       "type" = "application/x-ntfs-image"
+};
+
+resource(6, "META:PREF_APP") #'MSIG' "application/x-vnd.haiku-mountvolume";
+
+resource(7, "META:ICON") #'VICN' array {
+       $"6E636966080500040054020006023B019B3AA235BC243E3C71D248D17C498491"
+       $"00E7BB8FFFC99867020006023BA71138D0C8BBF4B83E90E64AED7C485BD7008A"
+       $"561DFFB57A3A02000602BB6FCBB8D4C839AA71BC3992492FF148D96A00FFC790"
+       $"FFFFF4EA0366330003FFDFC003AD7238110A0626543A464C455C4B4C603E600A"
+       $"063822262E264F3C5A4E484E2A0A04262E264F3C5A3C370A043C373C5A4E484E"
+       $"2A0A043822262E3C374E2A0A042832284E3A573A390A042A4D2B4638492A430A"
+       $"042A4D365238492B460A042A4D3854384936520A042E4CBB2BC5D3BB2BC5072E"
+       $"4A0A042C49344D344B2C470A042A352A402B38383B0A0436442A403846383B0A"
+       $"042B382A403644383B0A042EBE672EBF33BB2DC03FBB2DBF730A042CBD292CBD"
+       $"F5343F343D08022A4E2A540E0A010100000A0001101001178420040A00011030"
+       $"302901178420040A00011030401B01178420040A0001011001178400040A0201"
+       $"02000A030103000A040104000A050105000A06020B06000A0202070D000A0702"
+       $"0C08000A0302090E0815FF0A00020A0F0815FF"
+};


Other related posts:

  • » [haiku-commits] haiku: hrev52818 - src/data/mime_db/application - Stephan Aßmus