Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-250

GridFS stat should report chunk size in blksize field

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: None
    • None

      According to the stat() documentation, blksize is the "blocksize of filesystem IO". This corresponds to the GridFS chunk size.

      The blocks field is always the "number of 512-byte blocks allocated" and has no direct relationship with blksize (see: this documentation). While we could easily calculate this value, it's not relevant to GridFS and users might be confused in thinking that it is actually the number of GridFS chunks. We should continue to leave it unset (i.e. 0).

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: