1. 08 Dec, 2015 9 commits
    • Cyrill Gorcunov's avatar
      mnt: Carry run-time device ID in mount_info · 6217a84a
      Cyrill Gorcunov authored
      When we're restoring fsnotify watchees we need to resolve
      path to a handle at some mountpoint referred by @s_dev
      member (device ID) which is saved inside image. This
      ID actually may be changed at the every mount (say
      one restores container after machine reboot) or in
      case of container's migration.
      
      Thus the test for overmounting in __open_mountpoint
      will fail and we get an error.
      
      Lets do a trick: introduce @s_dev_rt member which
      is supposed to carry run-time device ID. When dumping
      this member simply equal to traditional @s_dev fetched
      from the procfs, but when restoring we fetch it from
      stat call once mountpoint become alive.
      
      https://jira.sw.ru/browse/PSBM-41610
      
      v2:
       - predefine MOUNT_INVALID_DEV
       - use fetch_rt_stat instead of assigning device in restore_shared_options
       - copy @s_dev_rt in propagate_siblings and propagate_mount
      Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      6217a84a
    • Pavel Emelyanov's avatar
      zdtm.py: The groups_test class for running groups · 0b0f40ec
      Pavel Emelyanov authored
      So here's the new test class that handles the test from
      groups set. The class is inherited from zdtm_test one as
      what it does is -- starts the pseudo-init in ns/uns flavors
      and asks one to spawn() the sub-tests from the list.
      
      All groups tests can only be run inside ns flavor, so if
      the host flavor is asked, just the pseudo-init is spawned.
      This is because using ns flavor is the easiest way to spawn
      all the sub tests under this init (however, h flavor can be
      supported by marking the pseudo-init as sub-reaper).
      
      On stop this pseudo-init is signalled to stop, it in turn
      stops all the sub-tests and then exits. When the pid
      namespace destruction is complete, the sub-tests .out-s are
      checked.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      0b0f40ec
    • Pavel Emelyanov's avatar
      zdtm.py: Generator of groups of tests · 41296aaf
      Pavel Emelyanov authored
      Introduce yet another tests set called 'groups'. Each test
      in this set is a list of existing zdtm tests that can be
      started side-by-side in an ns flavor.
      
      To 'create' such a test the zdtm.py group action is used,
      which lists tests and semi-randomly groups them together.
      The grouping possibility is checked by comparing the .desc
      files of those -- desc-s should coincide. One exception is
      test dependencies, these are just merged together.
      
      After running the group action there appears groups/ dir
      with tests each containing just the list of zdtm tests
      that are in a group. The respective .desc file is also
      generated and this one matches the .desc for tests inside.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      41296aaf
    • Pavel Emelyanov's avatar
      zdtm.py: Prepare zdtm_test and flavors for mass test start · 23898bf1
      Pavel Emelyanov authored
      This is -- add ability to pull more than one binary into
      mntns root and ability to start zdtm test with more stuff
      in the environment than generated in start method itself.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      23898bf1
    • Pavel Emelyanov's avatar
      zdtm: Remove unneeded re-exec · b9697482
      Pavel Emelyanov authored
      When starting inside ns flavor the test_init() routine prepares
      the binary to be run inside namespaces. In particular this routine
      fork()-s an init, execve()-s one to pick up mappings and exe from
      the new mntns and then fork()-s the test itself. In order to go
      back to test_init() for test initialization the execve() is done
      again, but it's actually not required and confuses the reader.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      b9697482
    • Pavel Emelyanov's avatar
      zdtm: Factor out ps showing code · b3c8ee1b
      Pavel Emelyanov authored
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      b3c8ee1b
    • Pavel Emelyanov's avatar
      zdtm: Introduce explicit prepare_namespaces() routine · 0ecd6c33
      Pavel Emelyanov authored
      This one is to set up uids for userns, do ip l s lo up for netns
      and do the prepare_mntns(). BTW, the latter's code is shifted one
      tab left as this is where it should be.
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      0ecd6c33
    • Kirill Tkhai's avatar
      fs: Add binfmt_misc support · de8fd000
      Kirill Tkhai authored
      This patch implements checkpoint/restore functionality
      for binfmt_misc mounts. Both magic and extension types
      and "disabled" state are supported.
      Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      de8fd000
    • Kirill Tkhai's avatar
      zdtm: Add socket_close_data01 test · 70b0e161
      Kirill Tkhai authored
      This test is for unix sockets open in DGRAM mode.
      Server opens a socket, binds it and waits for a signal.
      Client connects to the socket and sends a message.
      
      After the signal server checks that data is readable,
      and that it's still possible to connect to the bound
      socket.
      Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
      Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
      70b0e161
  2. 07 Dec, 2015 2 commits
  3. 04 Dec, 2015 6 commits
  4. 03 Dec, 2015 12 commits
  5. 02 Dec, 2015 1 commit
  6. 30 Nov, 2015 8 commits
  7. 27 Nov, 2015 2 commits