[Xapian-tickets] [Xapian] #823: Unit test ioblock1 failure

Xapian nobody at xapian.org
Fri Dec 22 00:11:35 GMT 2023


#823: Unit test ioblock1 failure
--------------------------+-------------------------------
 Reporter:  someplaceguy  |             Owner:  Olly Betts
     Type:  defect        |            Status:  new
 Priority:  normal        |         Milestone:  1.4.25
Component:  Test Suite    |           Version:  1.4.24
 Severity:  normal        |        Resolution:
 Keywords:                |        Blocked By:
 Blocking:                |  Operating System:  Linux
--------------------------+-------------------------------
Comment (by Olly Betts):

 `SEEK_HOLE` seems a good approach - it is supported by several platforms
 already and approved for the next POSIX revision (though it does look like
 a dummy implementation will conform).

 Maybe it's better to just rely on `SEEK_HOLE` and skip the test if not
 supported (or if it says "no holes") - ZFS demonstrates the reported block
 count can under-report so I'm not seeing how we can build a test on the
 block count for "big sparse file won't eat a lot of diskspace" without the
 risk of it incorrectly deciding it won't, and we want to avoid testcases
 being flaky or using GBs of temporary files.
-- 
Ticket URL: <https://trac.xapian.org/ticket/823#comment:5>
Xapian <https://xapian.org/>
Xapian


More information about the Xapian-tickets mailing list