Bug 27571

Summary: [unionfs] Changing policy of shadowing files and directoris to upper layer in unionfs
Product: Base System Reporter: Vladimir B. Grebenschikov <vova>
Component: kernAssignee: Daichi GOTO <daichi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Vladimir B. Grebenschikov 2001-05-23 11:30:01 UTC
  While working with unionfs:
  If a directory is found in the lower layer, and there is no entry in the
  upper layer, then a shadow directory will be created in the upperlayer.
  It will be owned by the user who originally did the union mount, with
  mode `rwxrwxrwx'' (0777) modified by the umask in effect at that time.
  So inbasic unionfs policy do all think like user copy directory structure
  by his own hand.

  I want possibility to give user exactly same stucture as on below layer,
  with same uid/gid/mode as on lowerlayer.

  Patch attached provide possibility use -a key to /sbin/mount_union.

  In case of the -a option the newly mirrored upper-layer directory will
  have the same attributes as the lower-layer directory.

  And same thing with files.
Comment 1 dwmalone freebsd_committer freebsd_triage 2001-05-23 11:44:15 UTC
Responsible Changed
From-To: freebsd-bugs->bp

bp's been looking at unionfs.
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-04-17 22:01:14 UTC
Responsible Changed
From-To: bp->freebsd-bugs

Reassign at assignee's request due to current lack of time to work on FreeBSD.
Comment 3 Craig Rodrigues freebsd_committer freebsd_triage 2006-05-28 21:26:41 UTC
Responsible Changed
From-To: freebsd-bugs->daichi

daichi is showing interest in unionfs
Comment 4 Craig Rodrigues freebsd_committer freebsd_triage 2007-02-13 06:03:18 UTC
State Changed
From-To: open->closed

New unionfs implementation has been committed to RELENG_6 and CURRENT. 
This bug report is only relevant to the previous version of unionfs. 
The new unionfs implementation has a MASQUERADE mode, which may be 
relevant to this PR.