[CRIU] [PATCH 0/2] zdtm: file-locks01 -- Fix device numbering on btrfs

Cyrill Gorcunov gorcunov at openvz.org
Fri Sep 4 06:43:47 PDT 2015


It turned out that when running on btrfs we can't fetch the proer
number of device we're mounted on until mountinfo parsed.

avagin@ proposed to use /proc/@fd/fdinfo instead but it seems
at moment it's not yet merged into sock fedora kernel so i cherry
picked a few snipets from criu source code to zdtm itself.

Please take a look once time permit.

Cyrill Gorcunov (2):
  zdtm: Add filesystem specific helpers
  test: file_locks -- Use device from mountinfo for BTRFS

 test/zdtm/lib/fs.c                   | 87 ++++++++++++++++++++++++++++++++++++
 test/zdtm/lib/fs.h                   | 46 +++++++++++++++++++
 test/zdtm/live/static/file_locks01.c | 25 +++++++++--
 3 files changed, 155 insertions(+), 3 deletions(-)

-- 
2.4.3



More information about the CRIU mailing list