Project

General

Profile

Task #201

Locking file during hashing

Added by Greg Burri almost 6 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
FileManager
Target version:
Start date:
05/07/2012
Due date:
% Done:

0%

Estimated time:
keywords:
Platform:
Linux

Description

Is it required to lock a file (or a part of a file) during the hashing process1 on Linux?

On Windows we use LockFileEx(..) and UnLockFileEx(..), see source:application/Common/FileLocker.h.

1 source:application/Core/FileManager/priv/Cache/FileHasher.h

History

#1 Updated by Greg Burri over 5 years ago

  • Assignee changed from HervĂ© Martinet to Greg Burri

#2 Updated by Greg Burri over 5 years ago

  • Status changed from Assigned to New
  • Assignee deleted (Greg Burri)
  • Target version changed from 1.1 to Unplanned

There is no reason to lock under Linux because an event from the 'DirWatcherLinux' will be raised at the end of the write and the file will be re-hashed.

Also available in: Atom PDF