openstreetmap / openstreetmap/mod_tile

init_storage_backend: Value too large for defined data type

Open
#88 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
318
Forks
199
PR merge metrics
No merged PRs in 30d

Description

There is problem with stat function on big filesystem (XFS, 2TB+)

Possible fix (worked for me):
store.c add:

define __USE_LARGEFILE64

define _LARGEFILE_SOURCE

define _LARGEFILE64_SOURCE

define __USE_FILE_OFFSET64

before #include <sys/stat.h>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in store.c at the sys/stat.h include and review how stat results are used for large filesystems. Reproduce the failure on an XFS filesystem larger than 2 TB, then verify that the storage backend handles the resulting values without a data-type error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.