Home
last modified time | relevance | path

Searched refs:devid (Results 1 – 16 of 16) sorted by relevance

/fs/autofs4/
Ddev-ioctl.c249 static int autofs_dev_ioctl_open_mountpoint(const char *name, dev_t devid) in autofs_dev_ioctl_open_mountpoint() argument
258 err = find_autofs_mount(name, &path, test_by_dev, &devid); in autofs_dev_ioctl_open_mountpoint()
290 dev_t devid; in autofs_dev_ioctl_openmount() local
294 if (!param->openmount.devid) in autofs_dev_ioctl_openmount()
300 devid = new_decode_dev(param->openmount.devid); in autofs_dev_ioctl_openmount()
303 fd = autofs_dev_ioctl_open_mountpoint(path, devid); in autofs_dev_ioctl_openmount()
452 dev_t devid; in autofs_dev_ioctl_requester() local
460 devid = sbi->sb->s_dev; in autofs_dev_ioctl_requester()
464 err = find_autofs_mount(param->path, &path, test_by_dev, &devid); in autofs_dev_ioctl_requester()
540 unsigned int devid, magic; in autofs_dev_ioctl_ismountpoint() local
[all …]
/fs/nfs/flexfilelayout/
Dflexfilelayoutdev.c177 struct nfs4_deviceid_node *devid) in ff_layout_mark_devid_invalid() argument
179 nfs4_mark_deviceid_unavailable(devid); in ff_layout_mark_devid_invalid()
194 struct nfs4_deviceid_node *devid; in ff_layout_mirror_valid() local
195 devid = &mirror->mirror_ds->id_node; in ff_layout_mirror_valid()
196 ff_layout_mark_devid_invalid(lseg, devid); in ff_layout_mirror_valid()
370 struct nfs4_deviceid_node *devid; in nfs4_ff_layout_prepare_ds() local
381 devid = &mirror->mirror_ds->id_node; in nfs4_ff_layout_prepare_ds()
382 if (ff_layout_test_devid_unavailable(devid)) in nfs4_ff_layout_prepare_ds()
394 nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo, in nfs4_ff_layout_prepare_ds()
515 struct nfs4_deviceid_node *devid; in ff_read_layout_has_available_ds() local
[all …]
Dflexfilelayout.c76 static int decode_deviceid(struct xdr_stream *xdr, struct nfs4_deviceid *devid) in decode_deviceid() argument
83 memcpy(devid, p, NFS4_DEVICEID4_SIZE); in decode_deviceid()
84 nfs4_print_deviceid(devid); in decode_deviceid()
421 struct nfs4_deviceid devid; in ff_layout_alloc_lseg() local
447 rc = decode_deviceid(&stream, &devid); in ff_layout_alloc_lseg()
452 &devid, lh->plh_lc_cred, in ff_layout_alloc_lseg()
1073 struct nfs4_deviceid_node *devid = FF_LAYOUT_DEVID_NODE(lseg, idx); in ff_layout_async_handle_error_v4() local
1146 nfs4_mark_deviceid_unavailable(devid); in ff_layout_async_handle_error_v4()
1175 struct nfs4_deviceid_node *devid = FF_LAYOUT_DEVID_NODE(lseg, idx); in ff_layout_async_handle_error_v3() local
1192 nfs4_mark_deviceid_unavailable(devid); in ff_layout_async_handle_error_v3()
/fs/btrfs/
Dvolumes.c258 u64 devid, u8 *uuid) in __find_device() argument
263 if (dev->devid == devid && in __find_device()
608 u64 devid, struct btrfs_fs_devices **fs_devices_ret) in device_list_add() argument
626 device = __find_device(&fs_devices->devices, devid, in device_list_add()
634 device = btrfs_alloc_device(NULL, &devid, in device_list_add()
742 device = btrfs_alloc_device(NULL, &orig_dev->devid, in clone_fs_devices()
791 if (device->devid == BTRFS_DEV_REPLACE_DEVID) { in btrfs_close_extra_devices()
873 device->devid != BTRFS_DEV_REPLACE_DEVID) { in btrfs_prepare_close_one_device()
881 new_device = btrfs_alloc_device(NULL, &device->devid, in btrfs_prepare_close_one_device()
973 u64 devid; in __btrfs_open_devices() local
[all …]
Dvolumes.h84 u64 devid; member
386 u64 chunk_start, u64 physical, u64 devid,
407 int btrfs_find_device_by_devspec(struct btrfs_root *root, u64 devid,
411 const u64 *devid,
413 int btrfs_rm_device(struct btrfs_root *root, char *device_path, u64 devid);
418 struct btrfs_device *btrfs_find_device(struct btrfs_fs_info *fs_info, u64 devid,
Ddev-replace.c269 dev_replace->srcdev->devid); in btrfs_run_dev_replace()
367 src_device->devid, in btrfs_dev_replace_start()
404 ret = btrfs_scrub_dev(fs_info, src_device->devid, 0, in btrfs_dev_replace_start()
542 src_device->devid, in btrfs_dev_replace_finishing()
559 src_device->devid, in btrfs_dev_replace_finishing()
562 tgt_device->devid = src_device->devid; in btrfs_dev_replace_finishing()
563 src_device->devid = BTRFS_DEV_REPLACE_DEVID; in btrfs_dev_replace_finishing()
809 dev_replace->srcdev->devid, in btrfs_dev_replace_kthread()
826 ret = btrfs_scrub_dev(fs_info, dev_replace->srcdev->devid, in btrfs_dev_replace_continue_on_mount()
Dreada.c823 btrfs_debug(fs_info, "dev %lld has %d in flight", device->devid, in dump_devs()
837 zone->devs[j]->devid); in dump_devs()
864 re->zones[i]->devs[j]->devid); in dump_devs()
896 re->zones[i]->devs[j]->devid); in dump_devs()
Dioctl.c1490 u64 devid = 1; in btrfs_ioctl_resize() local
1529 ret = kstrtoull(devstr, 10, &devid); in btrfs_ioctl_resize()
1532 if (!devid) { in btrfs_ioctl_resize()
1536 btrfs_info(root->fs_info, "resizing devid %llu", devid); in btrfs_ioctl_resize()
1539 device = btrfs_find_device(root->fs_info, devid, NULL, NULL); in btrfs_ioctl_resize()
1542 devid); in btrfs_ioctl_resize()
1550 devid); in btrfs_ioctl_resize()
2722 ret = btrfs_rm_device(root, NULL, vol_args->devid); in btrfs_ioctl_rm_dev_v2()
2733 vol_args->devid); in btrfs_ioctl_rm_dev_v2()
2802 if (device->devid > fi_args->max_id) in btrfs_ioctl_fs_info()
[all …]
Dctree.h1532 BTRFS_SETGET_FUNCS(device_id, struct btrfs_dev_item, devid, 64);
1549 BTRFS_SETGET_STACK_FUNCS(stack_device_id, struct btrfs_dev_item, devid, 64);
1578 BTRFS_SETGET_FUNCS(stripe_devid, struct btrfs_stripe, devid, 64);
1601 BTRFS_SETGET_STACK_FUNCS(stack_stripe_devid, struct btrfs_stripe, devid, 64);
2205 cpu->devid = le64_to_cpu(disk->devid); in btrfs_disk_balance_args_to_cpu()
2225 disk->devid = cpu_to_le64(cpu->devid); in btrfs_cpu_balance_args_to_disk()
3632 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
3640 int btrfs_scrub_progress(struct btrfs_root *root, u64 devid,
Dscrub.c3520 key.objectid = scrub_dev->devid; in scrub_enumerate_chunks()
3548 if (found_key.objectid != scrub_dev->devid) in scrub_enumerate_chunks()
3838 int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start, in btrfs_scrub_dev() argument
3889 dev = btrfs_find_device(fs_info, devid, NULL, NULL); in btrfs_scrub_dev()
4051 int btrfs_scrub_progress(struct btrfs_root *root, u64 devid, in btrfs_scrub_progress() argument
4058 dev = btrfs_find_device(root->fs_info, devid, NULL, NULL); in btrfs_scrub_progress()
Dsuper.c2298 if (!first_dev || dev->devid < first_dev->devid) in btrfs_show_devname()
Ddisk-io.c3756 btrfs_set_stack_device_id(dev_item, dev->devid); in write_all_supers()
/fs/nfs/filelayout/
Dfilelayoutdev.c266 struct nfs4_deviceid_node *devid = FILELAYOUT_DEVID_NODE(lseg); in nfs4_fl_prepare_ds() local
273 pnfs_generic_mark_devid_invalid(devid); in nfs4_fl_prepare_ds()
280 nfs4_pnfs_ds_connect(s, ds, devid, dataserver_timeo, in nfs4_fl_prepare_ds()
287 filelayout_test_devid_unavailable(devid)) in nfs4_fl_prepare_ds()
Dfilelayout.c130 struct nfs4_deviceid_node *devid = FILELAYOUT_DEVID_NODE(lseg); in filelayout_async_handle_error() local
203 nfs4_mark_deviceid_unavailable(devid); in filelayout_async_handle_error()
/fs/nfs/
Dpnfs_nfs.c757 struct nfs4_deviceid_node *devid, unsigned int timeo, in nfs4_pnfs_ds_connect() argument
778 nfs4_mark_deviceid_unavailable(devid); in nfs4_pnfs_ds_connect()
Dpnfs.h365 struct nfs4_deviceid_node *devid, unsigned int timeo,