-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rewrote priorities of blk_alloc_queue variants (#5) `blk_alloc_queue` had problems with correct priorities of definitions being used, which led to usage of `blk_alloc_queue(NUMA_NO_NODE)` instead of `blk_alloc_queue(GFP_KERNEL)` in some specific cases. * Kernel 6.X support (#7) * Implemented struct bdev_handle to replace it on older kernels; Modified fields of snap_device and surrounding functions to use bdev_handle instead of block_device. * Modified bdev_freeze/thaw references according to Kernel 6.8 * Added emulation of debian/control file for Ubuntu 24.04 LTS * Discovered that dpkg-gensymbols looks for debian/control only in current directory * Fixed includes to handle bdev_handle correctly * Kernel 6.6+ uses super_block as block_device holder * Tracer destroy now destroys bdev_handle correctly * Added vm_area_struct_vm_lock feature test * Made functions inside cow_get_file_extents to return correct error codes, not shadowed ones * Added test for vma_lock cache area * Added vm_lock initialization during page stealing at cow_get_file_extents * Fixed symbol test newline * Renamed dattobd_blkdev_by_path so we will have correct prefix dattobd_blkdev_by_path was previously named dattodb_blkdev_by_path, which is incorrect, as our module is called dattobd. * Fixed symbol-tests again It used CRLF instead of LF which led to incorrect behavior * Patch to support Rocky 9.5 * Fix usage of old filp * Version bump * Patch to have a workaround with DKMS bug Dell introduced a logic-breaking change in dell/dkms#461 which led to incorrect DattoBD installation behavior on RHEL systems. This patch has a small workaround to deal with that. * Improved stability of DKMS workaround Improved stability of DKMS workaround as it was proposed in dell/dkms#461
- Loading branch information
Showing
23 changed files
with
334 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#if defined HAVE_BDEV_FILE_OPEN_BY_PATH && defined HAVE_FILE_BDEV | ||
|
||
#define USE_BDEV_AS_FILE | ||
|
||
#endif |
19 changes: 19 additions & 0 deletions
19
src/configure-tests/feature-tests/bdev_file_open_by_path.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/* | ||
* Copyright (C) 2024 Datto Inc. | ||
*/ | ||
|
||
#include "includes.h" | ||
|
||
MODULE_LICENSE("GPL"); | ||
|
||
static inline void dummy(void){ | ||
struct file *file __attribute__ ((unused)) = NULL; | ||
const char *path = ""; | ||
fmode_t mode = 0; | ||
void *holder = NULL; | ||
struct blk_holder_ops h; | ||
|
||
file = bdev_file_open_by_path(path, mode, holder, &h); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/* | ||
* Copyright (C) 2024 Datto Inc. | ||
*/ | ||
|
||
#include "includes.h" | ||
|
||
MODULE_LICENSE("GPL"); | ||
|
||
static inline void dummy(void){ | ||
struct block_device bh; | ||
|
||
bdev_freeze(&bh); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/* | ||
* Copyright (C) 2024 Datto Inc. | ||
*/ | ||
|
||
#include "includes.h" | ||
|
||
MODULE_LICENSE("GPL"); | ||
|
||
static inline void dummy(void){ | ||
struct bdev_handle bh; | ||
|
||
struct block_device bd; | ||
int holder; | ||
|
||
bh.bdev = &bd; | ||
bh.holder = (void*)&holder; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/* | ||
* Copyright (C) 2024 Datto Inc. | ||
*/ | ||
|
||
#include "includes.h" | ||
|
||
MODULE_LICENSE("GPL"); | ||
|
||
static inline void dummy(void){ | ||
struct bdev_handle* bh; | ||
|
||
const char *path; | ||
blk_mode_t mode; | ||
int holder; | ||
const struct blk_holder_ops bho; | ||
|
||
bh = bdev_open_by_path(path, mode, (void*)&holder, &bho); | ||
} |
Oops, something went wrong.