Skip to content

unit tests for FileStore::_detect_fs when running on ext4#165

Merged
liewegas merged 1 commit intomasterfrom
unknown repository
May 8, 2013
Merged

unit tests for FileStore::_detect_fs when running on ext4#165
liewegas merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Mar 28, 2013

unit tests are added in test/filestore/store_test.cc for the
FileStore::_detect_fs method, when using ext4. It tests the following
situations:

  • without user_xattr, ext4 fails
  • mounted with user_xattr, ext4 fails if filestore_xattr_use_omap is false
  • mounted with user_xattr, ext4 succeeds if filestore_xattr_use_omap is true

The tests are grouped in an ext4 dedicated class

TEST(EXT4StoreTest, _detect_fs)

The qa/workunits/filestore/filestore.sh script is added to prepare the
environment required for the unit tests ( create an image file,
formats it with ext4 etc.). It runs ceph_test_filestore with a sudo
to allow it to mount(2) and umount(2) the ext4 file system. It is
called with

ceph_test_filestore --gtest_filter=EXT4StoreTest.*

to only run the ext4 dependent tests.

The filestore.sh script is meant to be used as part of teuthology
in order to increase the code coverage for src/os/FileStore.cc. It is
self tested and can be checked from the source directory with

CEPH_TEST_FILESTORE=../../../src/ceph_test_filestore filestore.sh TEST

http://tracker.ceph.com/issues/4321 refs #4321

Signed-off-by: Loic Dachary loic@dachary.org

unit tests are added in test/filestore/store_test.cc for the
FileStore::_detect_fs method, when using ext4. It tests the following
situations:

 * without user_xattr, ext4 fails
 * mounted with user_xattr, ext4 fails if filestore_xattr_use_omap is false
 * mounted with user_xattr, ext4 succeeds if filestore_xattr_use_omap is true

The tests are grouped in an ext4 dedicated class

  TEST(EXT4StoreTest, _detect_fs)

The qa/workunits/filestore/filestore.sh script is added to prepare the
environment required for the unit tests ( create an image file,
formats it with ext4 etc.). It runs ceph_test_filestore with a sudo
to allow it to mount(2) and umount(2) the ext4 file system. It is
called with

  ceph_test_filestore --gtest_filter=EXT4StoreTest.*

to only run the ext4 dependent tests.

The filestore.sh script is meant to be used as part of teuthology
in order to increase the code coverage for src/os/FileStore.cc. It is
self tested and can be checked from the source directory with

  CEPH_TEST_FILESTORE=../../../src/ceph_test_filestore filestore.sh TEST

http://tracker.ceph.com/issues/4321 refs #4321

Signed-off-by: Loic Dachary <loic@dachary.org>
liewegas pushed a commit that referenced this pull request May 8, 2013
unit tests for FileStore::_detect_fs when running on ext4
@liewegas liewegas merged commit a89d889 into ceph:master May 8, 2013
liewegas pushed a commit that referenced this pull request Dec 14, 2016
erasure-code: isa plugin thrashods suite

Reviewed-by: Samuel Just <sam.just@inktank.com>
liewegas pushed a commit that referenced this pull request Dec 14, 2016
Do not run local handling fix if local parameter is not found.
theanalyst pushed a commit to theanalyst/ceph that referenced this pull request Mar 13, 2018
tests: ceph-disk: ignore E722 in flake8 test
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 5, 2021
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request May 3, 2022
…ph#165)

* rgw_sal_motr: [CORTX-27628] Support Multipart Complete API in RGW

Handle deletion of old object during object overwrite situation.
Fixed invalid part issue for 1000 parts.

Signed-off-by: Dattaprasad Govekar <dattaprasad.govekar@seagate.com>

* rgw_op: [CORTX-27628] Fix empty etag issue in the response of Complete API

Problem: The computed Etag of all parts is not assigned to appropriate
state/variable, thus, making empty etag in the response of Complete API.

Resolution: The computer Etag is assigned to state/variable used in
generating the Complete API response.

Signed-off-by: Dattaprasad Govekar <dattaprasad.govekar@seagate.com>
robbat2 pushed a commit to robbat2/ceph that referenced this pull request Feb 1, 2023
…5/backport-heap-cmd-fix

osd, mds: fix the "heap" admin cmd printing always to error stream
irq0 pushed a commit to irq0/ceph that referenced this pull request Aug 18, 2023
rgw/gc: New GC implementation after versioning redesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant