Project

General

Profile

Actions

Task #201

open

Locking file during hashing

Added by Greg Burri almost 12 years ago. Updated almost 12 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

Actions #1

Updated by Greg Burri almost 12 years ago

  • Assignee changed from HervĂ© Martinet to Greg Burri
Actions #2

Updated by Greg Burri almost 12 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.

Actions

Also available in: Atom PDF