Page MenuHomeFreeBSD

virstor: remove relation between chunk size and MAXPHYS
ClosedPublic

Authored by rlibby on Thu, Jun 6, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 14, 7:12 PM
Unknown Object (File)
Thu, Jun 13, 7:27 AM
Unknown Object (File)
Wed, Jun 12, 8:56 PM
Unknown Object (File)
Wed, Jun 12, 3:47 AM
Unknown Object (File)
Tue, Jun 11, 4:32 AM
Unknown Object (File)
Tue, Jun 11, 1:00 AM
Unknown Object (File)
Sat, Jun 8, 4:51 PM
Unknown Object (File)
Sat, Jun 8, 12:41 PM
Subscribers

Details

Summary

There's no reason why the virstor chunk size needs to relate to MAXPHYS.
Remove it. Instead, just make sure that the chunk size is a multiple of
the sector size.

Sponsored by: Dell EMC Isilon

Test Plan

New test in D45535

% sudo kyua debug -k /usr/tests/sys/Kyuafile geom/class/virstor/virstor_test:basic
Executing command [ gvirstor label -v -s 64M -m 512 virstor.bjyhzA /dev/md0 ]
Executing command [ gvirstor destroy virstor.bjyhzA ]

Destroying test virstor device: virstor.bjyhzA
Removing test memory disk: md0
geom/class/virstor/virstor_test:basic -> passed

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rlibby requested review of this revision.Thu, Jun 6, 5:45 PM

I don't know this GEOM well enough to say whether this is right, but I can't see any reason it's wrong. It's unfortunate that there are no regression tests for this code.

lib/geom/virstor/geom_virstor.c
235

I don't know this GEOM well enough to say whether this is right, but I can't see any reason it's wrong. It's unfortunate that there are no regression tests for this code.

I see there are tests for other geoms in tests/sys/geom, but I haven't figured out how to run them yet. Do you know? I might be able to cobble together something basic at least.

I don't know this GEOM well enough to say whether this is right, but I can't see any reason it's wrong. It's unfortunate that there are no regression tests for this code.

I see there are tests for other geoms in tests/sys/geom, but I haven't figured out how to run them yet. Do you know? I might be able to cobble together something basic at least.

Ah, I got it with

sudo kyua test -k /usr/tests/sys/geom/Kyuafile

They are not hooked up to the sys/Kyuafile. I wonder why.

I don't know this GEOM well enough to say whether this is right, but I can't see any reason it's wrong. It's unfortunate that there are no regression tests for this code.

I see there are tests for other geoms in tests/sys/geom, but I haven't figured out how to run them yet. Do you know? I might be able to cobble together something basic at least.

Ah, I got it with

sudo kyua test -k /usr/tests/sys/geom/Kyuafile

They are not hooked up to the sys/Kyuafile. I wonder why.

Hmm, they are on my system. When I run the full regression test suite I know for sure that the GEOM regression tests run. (The GELI ones in particular generate a ton of console output, so it's easy to see.)

They are not hooked up to the sys/Kyuafile. I wonder why.

Sorry for the spam. They are hooked up, I just don't know kyua very well.

rlibby marked an inline comment as done.

markj feedback: fix style while here

This revision is now accepted and ready to land.Sat, Jun 8, 1:08 AM