On Mon, 7 Apr 2014 05:11:30 PM Trent W. Buck wrote: > Avi Miller <[email protected]> writes: > > > The rotational = 0 means it’s non-spinning, so that’s fine. > > Does this change anything *other than* making -o ssd the default?
Doesn't appear to, no.
if (!btrfs_test_opt(tree_root, SSD) &&
!btrfs_test_opt(tree_root, NOSSD) &&
!fs_info->fs_devices->rotating) {
printk(KERN_INFO "BTRFS: detected SSD devices, enabling SSD "
"mode\n");
btrfs_set_opt(fs_info->mount_opt, SSD);
}
That fs-devices->rotating variable is populated when initialising or opening a
btrfs device by something like:
· if (!blk_queue_nonrot(bdev_get_queue(bdev)))
. · root->fs_info->fs_devices->rotating = 1;
cheers,
Chris
--
Chris Samuel : http://www.csamuel.org/ : Melbourne, VIC
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ luv-main mailing list [email protected] http://lists.luv.asn.au/listinfo/luv-main
