Commit 3101bd5e authored by Ramon Nou's avatar Ramon Nou
Browse files

Test remove of data chunks

parent 84f3bcea
Pipeline #2599 passed with stages
in 34 minutes and 20 seconds
......@@ -84,4 +84,16 @@ def test_unlink(gkfs_daemon, gkfs_client):
assert ret.errno == errno.EISDIR
# create a file in gekkofs
ret = gkfs_client.open(file,
os.O_CREAT | os.O_WRONLY,
stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
assert ret.retval == 10000
# > 4 chunks
ret = gkfs_client.write_validate(file, 2097153)
assert ret.retval == 1
ret = gkfs_client.unlink(file) # Remove renamed file (extra chunks, success)
assert ret.retval == 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment