title: Mandatory file lock on linux
body: <p>On Linux I can <code>dd</code> a file on my hard drive and delete it in Nautilus while the dd is still going on.</p>
  <p>Can Linux enforce a mandatory file lock to protect R/W?</p>
  <p>[EDIT] The original question wasn't about linux file locking capabilities but about a supposed bug in linux, reproducing it here as it is responded below and others may have the same question.</p>
  <blockquote>
  <p>People keep telling me Linux/Unix is better OS. I am coding Java on Linux now and come across a problem, that I can easily reproduce: I can dd a file on my hard drive and delete it in Nautilus while the dd is still going on. How come linux cannot enforce a mandatory file lock to protect R/W??</p>
  </blockquote>