linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BTRFS misdetects NBD (Network Block Devices) as SSD
@ 2012-02-20 18:51 Roman Mamedov
  2012-02-20 19:03 ` Chris Mason
  0 siblings, 1 reply; 2+ messages in thread
From: Roman Mamedov @ 2012-02-20 18:51 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

Hello,

I have noticed I have the following in my dmesg:

[319769.043163] nbd: registered device at major 43
[319769.104176]  nbd11: unknown partition table
[319769.130273] device fsid c2598ff2-1e3e-4edf-ab19-1f7ab41b0160 devid 1 transid 125743 /dev/nbd11
[319769.130522] btrfs: force lzo compression
[319769.130528] btrfs: disk space caching is enabled
[319802.926547] Btrfs detected SSD devices, enabling SSD mode

The /dev/nbd11 device itself is not an SSD, it's an LVM volume situated on a
RAID5 array of regular hard drives, exported via NBD from another computer.

https://en.wikipedia.org/wiki/Network_block_device

-- 
With respect,
Roman

~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BTRFS misdetects NBD (Network Block Devices) as SSD
  2012-02-20 18:51 BTRFS misdetects NBD (Network Block Devices) as SSD Roman Mamedov
@ 2012-02-20 19:03 ` Chris Mason
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Mason @ 2012-02-20 19:03 UTC (permalink / raw)
  To: Roman Mamedov; +Cc: linux-btrfs

On Tue, Feb 21, 2012 at 12:51:57AM +0600, Roman Mamedov wrote:
> Hello,
> 
> I have noticed I have the following in my dmesg:
> 
> [319769.043163] nbd: registered device at major 43
> [319769.104176]  nbd11: unknown partition table
> [319769.130273] device fsid c2598ff2-1e3e-4edf-ab19-1f7ab41b0160 devid 1 transid 125743 /dev/nbd11
> [319769.130522] btrfs: force lzo compression
> [319769.130528] btrfs: disk space caching is enabled
> [319802.926547] Btrfs detected SSD devices, enabling SSD mode
> 
> The /dev/nbd11 device itself is not an SSD, it's an LVM volume situated on a
> RAID5 array of regular hard drives, exported via NBD from another computer.
> 
> https://en.wikipedia.org/wiki/Network_block_device

Btrfs pulls this information from the rotational flag on the block
device.  A few different devices set this incorrectly, but it's up to
the admin to flag it in /sys/block/xxx if they want something other than
the default.

-chris


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-20 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-20 18:51 BTRFS misdetects NBD (Network Block Devices) as SSD Roman Mamedov
2012-02-20 19:03 ` Chris Mason

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).