Files
sleuthkit/sleuthkit-4.12.0_add-lvm-support.patch
Jan Engelhardt f67a48e246 - version update to 4.14.0
* This release REVERTS many changes from 4.13.0. It is more close to 4.12.1 than it is to 4.13.0.
  * It was created from the Dec 3, 2024 ct-3.13.0 tag (28a838d) and has changes from the Sleuth Kit Labs team.
        Added BitLocker support (Windows only)
        Updated LibVMDK and LibVHDI
        Updated to Visual Studio 2019
        Updated logical folder caching
        Java changes listed in the 4.13.0 release
  * Use of the optimize pragma was added to the Java SQLite code (after the 4.13.0 release)
- added patches
  8d710c36a9
  + sleuthkit-no-bool.patch

OBS-URL: https://build.opensuse.org/package/show/security:forensics/sleuthkit?expand=0&rev=38
2025-07-13 10:33:15 +00:00

56 lines
1.3 KiB
Diff

diff -uN sleuthkit-4.12.0/tsk/pool/tsk_lvm.hpp ../../src/sleuthkit/4.12.0/tsk/pool/tsk_lvm.hpp
--- sleuthkit-4.12.0/tsk/pool/tsk_lvm.hpp 1970-01-01 01:00:00.000000000 +0100
+++ ../../src/sleuthkit/4.12.0/tsk/pool/tsk_lvm.hpp 2023-03-31 16:51:59.863371629 +0100
@@ -0,0 +1,51 @@
+/*
+ * The Sleuth Kit - Add on for Linux LVM support
+ *
+ * Copyright (c) 2022 Joachim Metz <joachim.metz@gmail.com>
+ *
+ * This software is distributed under the Common Public License 1.0
+ */
+
+#pragma once
+
+#include "tsk/base/tsk_base_i.h"
+
+#if HAVE_LIBVSLVM
+
+#include "tsk_pool.hpp"
+
+#include <libbfio.h>
+#include <libvslvm.h>
+
+class LVMPool;
+
+class LVMPool : public TSKPool {
+ protected:
+ TSK_IMG_INFO *_img;
+ // Start of the pool data within the image
+ TSK_OFF_T _offset;
+ libbfio_pool_t *_file_io_pool = NULL;
+ libvslvm_handle_t *_lvm_handle = NULL;
+ libvslvm_volume_group_t *_lvm_volume_group = NULL;
+
+ public:
+ LVMPool(std::vector<img_t> &&imgs);
+
+ // Moveable
+ LVMPool(LVMPool &&) = default;
+ LVMPool &operator=(LVMPool &&) = default;
+
+ // Not copyable because of TSK_IMG_INFO pointer
+ LVMPool(const LVMPool &) = delete;
+ LVMPool &operator=(const LVMPool &) = delete;
+
+ ~LVMPool();
+
+ std::string identifier;
+
+ ssize_t read(uint64_t address, char *buf, size_t buf_size) const
+ noexcept final;
+};
+
+#endif /* HAVE_LIBVSLVM */
+