forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add options to zfs redundant_metadata property
Currently, additional/extra copies are created for metadata in addition to the redundancy provided by the pool(mirror/raidz/draid), due to this 2 times more space is utilized per inode and this decreases the total number of inodes that can be created in the filesystem. By setting redundant_metadata to none, no additional copies of metadata are created, hence can reduce the space consumed by the additional metadata copies and increase the total number of inodes that can be created in the filesystem. Additionally, this can improve file create performance due to the reduced amount of metadata which needs to be written. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Dipak Ghosh <[email protected]> Signed-off-by: Akash B <[email protected]> Closes openzfs#13680
- Loading branch information
1 parent
04f1983
commit 1444402
Showing
9 changed files
with
151 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
* Copyright (c) 2019 Datto Inc. | ||
* Portions Copyright 2010 Robert Milkowski | ||
* Copyright (c) 2021, Colm Buckley <[email protected]> | ||
* Copyright (c) 2022 Hewlett Packard Enterprise Development LP. | ||
*/ | ||
|
||
#ifndef _SYS_FS_ZFS_H | ||
|
@@ -423,7 +424,9 @@ typedef enum { | |
|
||
typedef enum { | ||
ZFS_REDUNDANT_METADATA_ALL, | ||
ZFS_REDUNDANT_METADATA_MOST | ||
ZFS_REDUNDANT_METADATA_MOST, | ||
ZFS_REDUNDANT_METADATA_SOME, | ||
ZFS_REDUNDANT_METADATA_NONE | ||
} zfs_redundant_metadata_type_t; | ||
|
||
typedef enum { | ||
|
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 |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
* Copyright (c) 2018, loli10K <[email protected]>. All rights reserved. | ||
* Copyright (c) 2019, Klara Inc. | ||
* Copyright (c) 2019, Allan Jude | ||
* Copyright (c) 2022 Hewlett Packard Enterprise Development LP. | ||
*/ | ||
|
||
/* Portions Copyright 2010 Robert Milkowski */ | ||
|
@@ -287,7 +288,9 @@ redundant_metadata_changed_cb(void *arg, uint64_t newval) | |
* Inheritance and range checking should have been done by now. | ||
*/ | ||
ASSERT(newval == ZFS_REDUNDANT_METADATA_ALL || | ||
newval == ZFS_REDUNDANT_METADATA_MOST); | ||
newval == ZFS_REDUNDANT_METADATA_MOST || | ||
newval == ZFS_REDUNDANT_METADATA_SOME || | ||
newval == ZFS_REDUNDANT_METADATA_NONE); | ||
|
||
os->os_redundant_metadata = newval; | ||
} | ||
|
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
Oops, something went wrong.