Lines Matching +full:add +full:- +full:disk

1 /* SPDX-License-Identifier: GPL-2.0 */
115 * BCH_IOCTL_DISK_ADD: add a new device to an existing filesystem
123 * not claim to be a member of any existing filesystem - UUIDs on it will be
140 * BCH_IOCTL_DISK_ONLINE: given a disk that is already a member of a filesystem
148 * BCH_IOCTL_DISK_OFFLINE: offline a disk, causing the kernel to close that
170 * @new_state - one of the bch_member_state states (rw, ro, failed,
233 /* XXX: add an event for reporting errors */
276 return offsetof(struct bch_replicas_usage, r) + replicas_entry_bytes(&u->r); in replicas_usage_bytes()
287 * BCH_IOCTL_FS_USAGE: query filesystem disk space usage
289 * Returns disk space usage broken out by data type, number of replicas, and
292 * @replica_entries_bytes - size, in bytes, allocated for replica usage entries
297 * Returns -ERANGE if @replica_entries_bytes was too small
313 * BCH_IOCTL_DEV_USAGE: query device disk space usage
315 * Returns disk space usage broken out by data type - both by buckets and
357 * @sb - buffer to read into
358 * @size - size of userspace allocated buffer
359 * @dev - device to read superblock for, if BCH_READ_DEV flag is
362 * Returns -ERANGE if buffer provided is too small
374 * determine if disk is a (online) member - if so, returns device's index
376 * Returns -ENOENT if not found
385 * @dev - member to resize
386 * @nbuckets - new number of buckets
398 * @dev - member to resize
399 * @nbuckets - new number of buckets
441 * BCH_IOCTL_QUERY_ACCOUNTING: query filesystem disk accounting
443 * Returns disk space usage broken out by data type, number of replicas, and
446 * @replica_entries_bytes - size, in bytes, allocated for replica usage entries
451 * Returns -ERANGE if @replica_entries_bytes was too small