Skip to content

Commit

Permalink
Additional documentation for XFS store.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Sep 6, 2023
1 parent 816e287 commit 07e16d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/obuilder.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module Docker = Docker
module Btrfs_store = Btrfs_store
module Zfs_store = Zfs_store
module Rsync_store = Rsync_store
module Xfs_store = Xfs_store
module Store_spec = Store_spec
module Docker_store = Docker_store

Expand Down
8 changes: 6 additions & 2 deletions lib/xfs_store.mli
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
(** Store build results using rsync. *)
(** Store builds results using {b XFS} with the reflink feature.
XFS is intended to behave consistently as it scales to large storage and many files, modern-day XFS was originally from SGI Irix. This store uses the {b reflink} feature in XFS to share blocks between files, to support fast snapshots of directory trees and deduplicate file data for more efficient use of storage hardware.
For more details on the XFS implementation see {{: https://blogs.oracle.com/linux/post/xfs-data-block-sharing-reflink} XFS - Data Block Sharing (Reflink)} and {{: https://blogs.oracle.com/linux/post/upcoming-xfs-work-in-linux-v48-v49-and-v410-by-darrick-wong} Upcoming XFS Work in Linux v4.8 v4.9 and v4.10+}. *)

include S.STORE

val create : path:string -> t Lwt.t
(** [create ~path] creates a new xfs store where everything will
(** [create ~path] creates a new XFS store where everything will
be stored under [path]. *)

0 comments on commit 07e16d4

Please sign in to comment.