Deleted Added
full compact
vdev_label.c (339158) vdev_label.c (345121)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 138 unchanged lines hidden (view full) ---

147#include <sys/zio.h>
148#include <sys/dsl_scan.h>
149#include <sys/abd.h>
150#include <sys/fs/zfs.h>
151#include <sys/trim_map.h>
152
153static boolean_t vdev_trim_on_init = B_TRUE;
154SYSCTL_DECL(_vfs_zfs_vdev);
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 138 unchanged lines hidden (view full) ---

147#include <sys/zio.h>
148#include <sys/dsl_scan.h>
149#include <sys/abd.h>
150#include <sys/fs/zfs.h>
151#include <sys/trim_map.h>
152
153static boolean_t vdev_trim_on_init = B_TRUE;
154SYSCTL_DECL(_vfs_zfs_vdev);
155SYSCTL_INT(_vfs_zfs_vdev, OID_AUTO, trim_on_init, CTLFLAG_RW,
155SYSCTL_INT(_vfs_zfs_vdev, OID_AUTO, trim_on_init, CTLFLAG_RWTUN,
156 &vdev_trim_on_init, 0, "Enable/disable full vdev trim on initialisation");
157
158/*
159 * Basic routines to read and write from a vdev label.
160 * Used throughout the rest of this file.
161 */
162uint64_t
163vdev_label_offset(uint64_t psize, int l, uint64_t offset)

--- 1340 unchanged lines hidden ---
156 &vdev_trim_on_init, 0, "Enable/disable full vdev trim on initialisation");
157
158/*
159 * Basic routines to read and write from a vdev label.
160 * Used throughout the rest of this file.
161 */
162uint64_t
163vdev_label_offset(uint64_t psize, int l, uint64_t offset)

--- 1340 unchanged lines hidden ---