User Tools

Site Tools


notes:union_mounts_for_building

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
notes:union_mounts_for_building [2012/11/05 14:16]
andy
notes:union_mounts_for_building [2012/11/16 11:14] (current)
andy [Using unionfs-fuse]
Line 63: Line 63:
  
 The **''​cow''​** option enables copy-on-write semantics, without which files located in the source partition will be regarded as read-only (which may be useful for detecting build errors, but can be annoying when compiling broken third-party code or building in a source directory which has already been polluted with build products). The **''​cow''​** option enables copy-on-write semantics, without which files located in the source partition will be regarded as read-only (which may be useful for detecting build errors, but can be annoying when compiling broken third-party code or building in a source directory which has already been polluted with build products).
 +
 +If you wish to override certain files locally without risking putting them into the source repository, you can insert an extra read-only layer whose files will override those in ''<​source-dir>'',​ but still not be affected by scrubbing the ''<​build-dir>'':​
 +
 +<​code>​
 +unionfs-fuse -o cow <​build-dir>​=rw:<​delta-dir>​=ro:<​source-dir>​=ro <​mnt-dir>​
 +</​code>​
  
 To later unmount it, use the ''​fusermount''​ utility: To later unmount it, use the ''​fusermount''​ utility:
notes/union_mounts_for_building.1352125010.txt.gz ยท Last modified: 2012/11/05 14:16 by andy