Ticket #2610 (closed enhancement: fixed)

Opened 13 years ago

Last modified 13 years ago

Use posix_fallocate64() when copying files/moving to a new mount point

Reported by: birdie Owned by: slavazanko
Priority: major Milestone: 4.8.1
Component: mc-core Version: 4.8.0-pre2
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: commited-master

Description

A lot of Linux filesystems allow to decrease file fragmentation by allocating a space for the file before actually writing to it.

Please, make use of this feature.

All that's required is to call posix_fallocate64() before starting writing blocks to the file.

Change History

comment:1 Changed 13 years ago by slavazanko

  • Status changed from new to accepted
  • Owner set to slavazanko
  • Milestone changed from 4.8.0 to 4.8

comment:2 Changed 13 years ago by slavazanko

  • Priority changed from critical to major
  • Branch state changed from no branch to on review

Created branch 2610_posix_fallocate
Initial changeset:b041df29caa531535df2c6dc27d21d67df8d1093

Review, please.

comment:3 Changed 13 years ago by andrew_b

  • Votes for changeset set to andrew_b

comment:4 Changed 13 years ago by angel_il

  • Votes for changeset changed from andrew_b to andrew_b angel_il
  • Branch state changed from on review to approved

comment:5 Changed 13 years ago by slavazanko

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b angel_il to commited-master
  • Resolution set to fixed
  • Branch state changed from approved to merged
  • Milestone changed from 4.8 to 4.8.1

Merged to master.

git log --pretty=oneline 490711f..9a7d02f

comment:6 Changed 13 years ago by slavazanko

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.