[Unionfs] Renaming not empty sub-directories of read-only
directory via Windows
Erez Zadok
ezk at cs.sunysb.edu
Tue Apr 15 12:45:04 EDT 2008
In message <200804141452.18602.buesching at univention.de>, Andreas =?iso-8859-1?q?B=FCsching?= writes:
> Hi,
>
> I'm currently evaluating unionfs for a project and ran into a problem with=
> =20
> renaming sub-direcotries in a read-only directory of a branch if these=20
> directories contain any files (or other directories)
>
> following configuration:
> =2D mount -v -t unionfs -o dirs=3D/branch_rw=3Drw:/branch_ro=3Dro none /uni=
> on
> =2D kernel 2.6.24 + unionfs 2.2.3
> =2D Using a Windows Client via Samba to access /union
>
> I can rename a sub-directory in a read-only directory if it does not contai=
> n=20
> any files or with if I remove the files before renaming the directory.
>
> example:=20
> mkdir -p /branch_ro/dir1/dir2
> touch /branch_ro/dir1/dir2/file1
> touch /branch_ro/dir1/dir2/file2
> touch /branch_ro/dir1/dir2/file3
>
> If I try to rename the directory dir2 to dir2.new I get an error 'permissio=
> n=20
> denied' (The directory and files were created by the same user)
>
> If I remove the files file1, file2 and file3 and rename the directory dir2=
> =20
> afterwards it works just fine.
>
> any help is appreciated
>
> As I've not subscribed to the list please send a CC to my e-mail address
>
> regards
> Andreas
Andreas, please open a bugzilla report on this problem
(https://bugzilla.filesystems.org/).
When you say "Samba" do you mean you're using smbd on the Linux box, or do
you use something else?
What happens if you try to rename the file using /bin/mv on the unix machine
directly: does that work?
Thanks,
Erez.
More information about the unionfs
mailing list