mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +03:00
Remaining {=> const} char|void *tag
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13348
This commit is contained in:
+2
-2
@@ -3024,7 +3024,7 @@ static objset_t *sa_os = NULL;
|
||||
static sa_attr_type_t *sa_attr_table = NULL;
|
||||
|
||||
static int
|
||||
open_objset(const char *path, void *tag, objset_t **osp)
|
||||
open_objset(const char *path, const void *tag, objset_t **osp)
|
||||
{
|
||||
int err;
|
||||
uint64_t sa_attrs = 0;
|
||||
@@ -3068,7 +3068,7 @@ open_objset(const char *path, void *tag, objset_t **osp)
|
||||
}
|
||||
|
||||
static void
|
||||
close_objset(objset_t *os, void *tag)
|
||||
close_objset(objset_t *os, const void *tag)
|
||||
{
|
||||
VERIFY3P(os, ==, sa_os);
|
||||
if (os->os_sa != NULL)
|
||||
|
||||
+1
-1
@@ -6438,7 +6438,7 @@ print_holds(boolean_t scripted, int nwidth, int tagwidth, nvlist_t *nvl)
|
||||
(void) nvpair_value_nvlist(nvp, &nvl2);
|
||||
while ((nvp2 = nvlist_next_nvpair(nvl2, nvp2)) != NULL) {
|
||||
char tsbuf[DATETIME_BUF_LEN];
|
||||
char *tagname = nvpair_name(nvp2);
|
||||
const char *tagname = nvpair_name(nvp2);
|
||||
uint64_t val = 0;
|
||||
time_t time;
|
||||
struct tm t;
|
||||
|
||||
+2
-2
@@ -88,7 +88,7 @@ usage(void)
|
||||
|
||||
|
||||
static __attribute__((format(printf, 3, 4))) __attribute__((noreturn)) void
|
||||
fatal(spa_t *spa, void *tag, const char *fmt, ...)
|
||||
fatal(spa_t *spa, const void *tag, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
@@ -166,7 +166,7 @@ zhack_import(char *target, boolean_t readonly)
|
||||
}
|
||||
|
||||
static void
|
||||
zhack_spa_open(char *target, boolean_t readonly, void *tag, spa_t **spa)
|
||||
zhack_spa_open(char *target, boolean_t readonly, const void *tag, spa_t **spa)
|
||||
{
|
||||
int err;
|
||||
|
||||
|
||||
+2
-2
@@ -1537,7 +1537,7 @@ ztest_spa_prop_set_uint64(zpool_prop_t prop, uint64_t value)
|
||||
|
||||
static int
|
||||
ztest_dmu_objset_own(const char *name, dmu_objset_type_t type,
|
||||
boolean_t readonly, boolean_t decrypt, void *tag, objset_t **osp)
|
||||
boolean_t readonly, boolean_t decrypt, const void *tag, objset_t **osp)
|
||||
{
|
||||
int err;
|
||||
char *cp = NULL;
|
||||
@@ -2810,7 +2810,7 @@ ztest_io(ztest_ds_t *zd, uint64_t object, uint64_t offset)
|
||||
* Initialize an object description template.
|
||||
*/
|
||||
static void
|
||||
ztest_od_init(ztest_od_t *od, uint64_t id, char *tag, uint64_t index,
|
||||
ztest_od_init(ztest_od_t *od, uint64_t id, const char *tag, uint64_t index,
|
||||
dmu_object_type_t type, uint64_t blocksize, uint64_t dnodesize,
|
||||
uint64_t gen)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user