Skip to content

Instantly share code, notes, and snippets.

@azat
Created March 4, 2018 13:19
Show Gist options
  • Save azat/f9caad47e267c9e510d0e9a6915fab48 to your computer and use it in GitHub Desktop.
Save azat/f9caad47e267c9e510d0e9a6915fab48 to your computer and use it in GitHub Desktop.
nfs-estale.sh
#!/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