Project

General

Profile

Actions

Task #201

open

Locking file during hashing

Task #201: Locking file during hashing

Added by Greg Burri over 14 years ago. Updated about 14 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

Updated by Greg Burri about 14 years ago Actions #1

  • Assignee changed from HervĂ© Martinet to Greg Burri

Updated by Greg Burri about 14 years ago Actions #2

  • 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: PDF Atom