user710818
user710818

Reputation: 24248

How to create Stale NFS file handle?

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

Upvotes: 3

Views: 2287

Answers (1)

lonestar21
lonestar21

Reputation: 1193

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.

Upvotes: 3

Related Questions