Loading disorderfs.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,12 @@ int main (int argc, char** argv) * Initialize disorderfs_fuse_operations */ /* * Indicate that we should accept UTIME_OMIT (and UTIME_NOW) in the * utimens operations for "touch -m" and "touch -a" */ disorderfs_fuse_operations.flag_utime_omit_ok = 1; disorderfs_fuse_operations.getattr = [] (const char* path, struct stat* st) -> int { Guard g; if (lstat((root + path).c_str(), st) == -1) { Loading tests/common +0 −4 Original line number Diff line number Diff line Loading @@ -19,10 +19,6 @@ Fail () { exit 1 } XFail () { echo "XFail: ${*}" } Expect () { ENTRIES="$(Get_entries)" EXPECTED="${1}" Loading tests/touch +4 −8 Original line number Diff line number Diff line Loading @@ -20,21 +20,17 @@ fi touch ${FILENAME} touch -m -d @${EXPECTED} ${FILENAME} RESULT="$(stat --format=%Y ${FILENAME})" if [ "${RESULT}" = "${EXPECTED}" ] if [ "${RESULT}" != "${EXPECTED}" ] then Fail "test2: Did not XFail" else XFail "test2: Got=${RESULT} Expected=${EXPECTED}" Fail "test2: Got=${RESULT} Expected=${EXPECTED}" fi touch ${FILENAME} touch -a -d @${EXPECTED} ${FILENAME} RESULT="$(stat --format=%X ${FILENAME})" if [ "${RESULT}" = "${EXPECTED}" ] if [ "${RESULT}" != "${EXPECTED}" ] then Fail "test3: Did not XFail" else XFail "test3: Got=${RESULT} Expected=${EXPECTED}" Fail "test3: Got=${RESULT} Expected=${EXPECTED}" fi Unmount Loading
disorderfs.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,12 @@ int main (int argc, char** argv) * Initialize disorderfs_fuse_operations */ /* * Indicate that we should accept UTIME_OMIT (and UTIME_NOW) in the * utimens operations for "touch -m" and "touch -a" */ disorderfs_fuse_operations.flag_utime_omit_ok = 1; disorderfs_fuse_operations.getattr = [] (const char* path, struct stat* st) -> int { Guard g; if (lstat((root + path).c_str(), st) == -1) { Loading
tests/common +0 −4 Original line number Diff line number Diff line Loading @@ -19,10 +19,6 @@ Fail () { exit 1 } XFail () { echo "XFail: ${*}" } Expect () { ENTRIES="$(Get_entries)" EXPECTED="${1}" Loading
tests/touch +4 −8 Original line number Diff line number Diff line Loading @@ -20,21 +20,17 @@ fi touch ${FILENAME} touch -m -d @${EXPECTED} ${FILENAME} RESULT="$(stat --format=%Y ${FILENAME})" if [ "${RESULT}" = "${EXPECTED}" ] if [ "${RESULT}" != "${EXPECTED}" ] then Fail "test2: Did not XFail" else XFail "test2: Got=${RESULT} Expected=${EXPECTED}" Fail "test2: Got=${RESULT} Expected=${EXPECTED}" fi touch ${FILENAME} touch -a -d @${EXPECTED} ${FILENAME} RESULT="$(stat --format=%X ${FILENAME})" if [ "${RESULT}" = "${EXPECTED}" ] if [ "${RESULT}" != "${EXPECTED}" ] then Fail "test3: Did not XFail" else XFail "test3: Got=${RESULT} Expected=${EXPECTED}" Fail "test3: Got=${RESULT} Expected=${EXPECTED}" fi Unmount