(testdir)
| 616 | cephfs.unlink(b'/file-ftruncate') |
| 617 | |
| 618 | def test_fallocate(testdir): |
| 619 | fd = cephfs.open(b'/file-fallocate', 'w', 0o755) |
| 620 | assert_raises(TypeError, cephfs.fallocate, b'/file-fallocate', 0, 10) |
| 621 | assert_raises(libcephfs.OperationNotSupported, cephfs.fallocate, fd, 0, 10) |
| 622 | stat = cephfs.fsync(fd, 0) |
| 623 | st = cephfs.fstat(fd) |
| 624 | assert_equal(st.st_size, 0) |
| 625 | cephfs.close(fd) |
| 626 | cephfs.unlink(b'/file-fallocate') |
| 627 | |
| 628 | def test_mknod(testdir): |
| 629 | mode = stat.S_IFIFO | stat.S_IRUSR | stat.S_IWUSR |
nothing calls this directly
no test coverage detected