Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Stale NFS file handle?

Tags:

bash

handler

I need to test script that deletes stale NFS file handles, so I would like to prepare a sample. Which way is simplest? Thanks.

like image 487
user710818 Avatar asked Nov 30 '25 17:11

user710818


1 Answers

Here is a super-hacky way that I do it.

in 1 terminal

vim tmp.tmp

in a second terminal

rm -f tmp.tmp.swp

This should generate a .nfs##### file.

like image 94
lonestar21 Avatar answered Dec 03 '25 13:12

lonestar21



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!