]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fsstress: allow multiple suboptions to -f
authorDarrick J. Wong <djwong@kernel.org>
Thu, 4 Dec 2025 21:53:17 +0000 (13:53 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 5 Dec 2025 06:19:52 +0000 (14:19 +0800)
commit1b37d45c4373fc359a5cf3be3f91d3e1ce9e09da
tree78470d40f31066def78feafddfac833aa881c37a
parent5760b2105985bf5bbb611c7eb8c69a823f2b3daa
fsstress: allow multiple suboptions to -f

I got bitten by fsstress's argument parsing recently because it turns
out that if you do:

# fsstress -z -f creat=2,unlink=1

It will ignore everything after the '2' and worse yet it won't tell you
that it's done so unless you happen to pass -S to make it spit out the
frequency table.

Adapt process_freq to tokenize the argument string so that it can handle
a comma-separated list of key-value arguments.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
ltp/fsstress.c