* Wrong SSD type detection on zoned device
@ 2025-09-26 3:12 HAN Yuwei
2025-09-26 4:38 ` Qu Wenruo
0 siblings, 1 reply; 2+ messages in thread
From: HAN Yuwei @ 2025-09-26 3:12 UTC (permalink / raw)
To: linux-btrfs
Hi,
I just found that when mounting zoned device, it will have "ssd" mount
option.
# cat /etc/fstab:
[...]
LABEL=DATA2 /data2 btrfs
rw,relatime,space_cache=v2,subvolid=5,subvol=/,nofail,nosuid,nodev 0 0
# mount
[...]
/dev/sdd on /data2 type btrfs
(rw,nosuid,nodev,relatime,ssd,space_cache=v2,subvolid=5,subvol=/)
# cat /sys/block/sdd/queue/rotational
1
Is this needed to be fixed?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Wrong SSD type detection on zoned device
2025-09-26 3:12 Wrong SSD type detection on zoned device HAN Yuwei
@ 2025-09-26 4:38 ` Qu Wenruo
0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2025-09-26 4:38 UTC (permalink / raw)
To: HAN Yuwei, linux-btrfs
在 2025/9/26 12:42, HAN Yuwei 写道:
> Hi,
>
> I just found that when mounting zoned device, it will have "ssd" mount
> option.
>
> # cat /etc/fstab:
> [...]
> LABEL=DATA2 /data2 btrfs
> rw,relatime,space_cache=v2,subvolid=5,subvol=/,nofail,nosuid,nodev 0 0
>
> # mount
> [...]
> /dev/sdd on /data2 type btrfs
> (rw,nosuid,nodev,relatime,ssd,space_cache=v2,subvolid=5,subvol=/)
>
> # cat /sys/block/sdd/queue/rotational
> 1
>
> Is this needed to be fixed?
>
>
Indeed it's a regression due to the changes in v6.17 that we delayed the
device opening, so that set_devices_specific_options() is called without
any device opened.
Thus it always set SSD because fs_devices->rotating is not set as we
haven't yet opened any device.
Will sent out a fix for it.
Thanks,
Qu
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-09-26 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-26 3:12 Wrong SSD type detection on zoned device HAN Yuwei
2025-09-26 4:38 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).