Project

General

Profile

Actions

Tasks #66038

closed

Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuse

Create workunits for reproducers found in fstest tests

Added by Christopher Hoffman almost 2 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Create work units for fstest tasks that had reproducers (ffsb, pjd, dbench).

Actions #2

Updated by Christopher Hoffman almost 2 years ago

Also include these snippets:

import os

def write_fill(fd, fill, size, offset):
  s = ''
  for i in range(0,size):
    s += fill

  os.lseek(fd, offset - int(size / 2), 0)
  os.write(fd, str.encode(s))

file = 'file.log'
fd = os.open(file, os.O_RDWR|os.O_CREAT)

s = write_fill(fd, 's', 5529, 6144)

import time
time.sleep(10)
s = write_fill(fd, 't', 4033, 6144)

s = write_fill(fd, 's', 4096, 11867913457664)

import time
time.sleep(10)
s = write_fill(fd, 't', 8, 16)
import os

file = 'datafile31'
fd = os.open(file, os.O_RDONLY)
os.close(fd)

fd = os.open(file, os.O_RDWR|os.O_CREAT)

#reproducing sys calls after ffsb bench has started
fill = '\0'
size = 3192
offset = 60653568

s = ''
for i in range(0,size):
  s += fill

os.lseek(fd, offset, 0)
os.write(fd, str.encode(s))

os.close(fd)

Actions #3

Updated by Christopher Hoffman over 1 year ago

  • Status changed from New to In Progress
Actions #4

Updated by Christopher Hoffman over 1 year ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF