summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-11-28 00:19:04 +0000
committerasomers <asomers@FreeBSD.org>2017-11-28 00:19:04 +0000
commit6c64aedd118d7d79a496e4e3c43334c1bc272617 (patch)
tree4e9ad9a1f673c6b786dab08fe606d78cdc2227c1 /bin/rcp
parentc1cebba7cf78d2638aec53a5c28621d871672663 (diff)
downloadFreeBSD-src-6c64aedd118d7d79a496e4e3c43334c1bc272617.zip
FreeBSD-src-6c64aedd118d7d79a496e4e3c43334c1bc272617.tar.gz
MFC r322854, r323995, r324568, r324991
r322854: zfsd(8): Close a race condition when onlining a disk paritition When inserting a partitioned disk, devfs and geom will announce the whole disk before they announce the partition. If the partition containing ZFS extends to one of the disk's extents, then zfsd will see a ZFS label on the whole disk and attempt to online it. ZFS is smart enough to activate the partition instead of the whole disk, but only if GEOM has already created the partition's provider. cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c Add a zpool_read_all_labels method. It's similar to zpool_read_label, but it will return the number of labels found. cddl/usr.sbin/zfsd/zfsd_event.cc When processing a DevFS CREATE event, only online a VDEV if we can read all four ZFS labels. Reviewed by: mav Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11920 r323995: Close a memory leak when using zpool_read_all_labels X-MFC-With: 322854 Sponsored by: Spectra Logic Corp r324568: Optimize zpool_read_all_labels with AIO Read all labels in parallel instead of sequentially X-MFC-With: 322854 Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12495 r324991: Fix zpool_read_all_labels when vfs.aio.enable_unsafe=0 Previously, zpool_read_all_labels was trying to do 256KB reads, which are greater than the default MAXPHYS and therefore must go through the slow, unsafe AIO path. Shrink these reads to 112KB so they can use the safe, fast AIO path instead. X-MFC-With: 324568 Sponsored by: Spectra Logic Corp
Diffstat (limited to 'bin/rcp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud