You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cp, nfs-removal-race.sh? : strace -P d -e inject=%stat:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d fails #9882
$ touch s
$ strace -P d -e inject=%stat:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d 2> /dev/null
$ file d
d: cannot open `d' (No such file or directory)
$ strace -P d -e inject=%stat:retval=0 -e inject=openat:error=ENOENT:when=1 gnu-cp s d 2> /dev/null
$ file d
d: empty
That's a great way of injecting the errors, I wonder if we can make some helper methods for our rust integ tests that use that to make it easier to test these cases
Do you think we can change more of the LD_PRELOAD tests using this method? I think the ones using mtab are way more complex but maybe there's a few others that would work
changed the title [-]cp, nfs-removal-race.sh? : strace -P d -e inject=statx:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d fails[/-][+]cp, nfs-removal-race.sh? : strace -P d -e inject=%stat:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d fails[/+]on Dec 28, 2025
Activity
ChrisDryden commentedon Dec 28, 2025
That's a great way of injecting the errors, I wonder if we can make some helper methods for our rust integ tests that use that to make it easier to test these cases
oech3 commentedon Dec 28, 2025
Helper for
unshare -rm bashis also useful.dmsetupmight bit difficult to add.ChrisDryden commentedon Dec 28, 2025
Do you think we can change more of the LD_PRELOAD tests using this method? I think the ones using mtab are way more complex but maybe there's a few others that would work
oech3 commentedon Dec 28, 2025
No idea about
tail's race things currently[-]cp, nfs-removal-race.sh? : strace -P d -e inject=statx:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d fails[/-][+]cp, nfs-removal-race.sh? : strace -P d -e inject=%stat:retval=0 -e inject=openat:error=ENOENT:when=1 cp s d fails[/+]