Xfstesting-cifs

From SambaWiki
Revision as of 21:32, 17 September 2014 by Sfrench (talk | contribs)

Please update if you see corrections ...


[Setting up the tests]
The xfstest suite has been updated to make it easier to test cifs (and smb3).

  1. First clone the tree:
    git clone git://oss.sgi.com/xfs/cmds/xfstests and also git clone git://oss.sgi.com/xfs/cmds/xfsprogs
  2. Build the source
    sudo yum install uuid-devel e2fsprogs-devel libuuid-devel libattr-devel libacl-devel libaio-dev
    cd xfsprogs
    make
    sudo make install-qa
    cd ../xfstests
    ./configure
    make
  3. Add the secondary test userid (fsgqa) if it does not already exist, and add the user to the server you wish to mount to (in our example we used user "test" with password "testpasswd" but you can specify any that you want on the mount. Make sure that you create the share on the test server and change the "your-server" and "your-share" to the appropriate UNC name for your test export.
    sudo useradd fsgqa
  4. Edit the local.config file
    This simple example (local.config with only four lines) is for mount with smb3. Tu run with cifs you could remove vers=3.0. To turn off CIFS Unix Extenions (to Samba server)add mount option "nounix"
    FSTYP=cifs
    TEST_DEV=//your-server/your-share
    TEST_DIR=/mnt/test
    CIFS_MOUNT_OPTIONS='-ousername=test,password=testpasswd,noperm,vers=3.0,mfsymlinks,actimeo=0'
  5. Make sure you have at least 40GB disk space free on your test target
  6. Run the tests
    ./check -cifs


[Current Test Results]

  1. failing test cases
    1. To current Windows (SMB3 or later): generic/011 generic/023 generic/075 generic/088 generic/089 generic/091 generic/126 generic/127 generic/184 generic/192 generic/245 generic/263 generic/313
    2. To current Windows (using CIFS dialect instead of SMB3):
    3. To current Samba (CIFS with POSIX extensions):
  2. test cases that need new cifs features to run
  3. test cases that need xfstest itself to be updated to run over cifs/smb3
    Includes any with SCRATCH_DEV requirement (patches to xfstest exist to get these to run over a network file system)