Created
March 4, 2018 13:19
-
-
Save azat/f9caad47e267c9e510d0e9a6915fab48 to your computer and use it in GitHub Desktop.
nfs-estale.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
head -c100M /dev/zero > /tmp/zero | |
cp /tmp/zero /srv/nfs4/zero | |
exec 3</mnt/nfs4/zero | |
exportfs -f | |
rpc.nfsd 0 | |
exportfs -r | |
rpc.nfsd 10 | |
head -c10M /dev/zero > /tmp/zero | |
mv /tmp/zero /srv/nfs4/zero | |
# ESTALE | |
head -c5 <&3 | hexdump -C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment