Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2638

ftruncate may not be supported

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.9.0, 3.2.10, 3.3.12
    • Affects Version/s: None
    • Component/s: None
    • None

      sue.loverso, one of the groups interested in the pluggable file system work has a file truncate that can extend a file, but not shorten the file.

      The logging subsystem calls ftruncate in a few places, can you please describe when it's OK for ftruncate to fail to shorten the file and when it's OK for ftruncate to fail to extend the file?

      Obviously, it would be great if it's never a matter of correctness for ftruncate to fail in either case.

      FTR, the block manager also calls ftruncate, but it's never an issue of correctness, and it should be relatively easy to change the block manager to ignore systems that don't support any kind of ftruncate.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: