Re: [PATCH] block: allow partitions on host aware zone devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/26/20 6:05 AM, Christoph Hellwig wrote:
> Host-aware SMR drives can be used with the commands to explicitly manage
> zone state, but they can also be used as normal disks.  In the former
> case it makes perfect sense to allow partitions on them, in the latter
> it does not, just like for host managed devices.  Add a check to
> add_partition to allow partitions on host aware devices, but give
> up any zone management capabilities in that case, which also catches
> the previously missed case of adding a partition vs just scanning it.
> 
> Because sd can rescan the attribute at runtime it needs to check if
> a disk has partitions, for which a new helper is added to genhd.h.

Applied, thanks.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux