On Wed, Feb 9, 2011 at 8:38 PM,  <sf...@users.sourceforge.net> wrote:
>
> Jeff Hanson:
>> chown -R administrator:administrator /home/administrator/.wine-Diablo_II
>
> Because you add -R, chown handles all of the specified dir, the files
> and the sub-dirs under it recursively and unconditionally. But what I
> suggested is to chown only the file which a user is going to modify.
>

Because of the complexity of the applications, number of files, and
built-in updaters, I can't predict which files need to be modified so
I have to assume all of them.

> (from the aufs manual)
> ----------------------------------------------------------------------
> The test for permission bits has two cases. One is for a directory,
> and the other is for a non-directory. In the case of a directory, aufs
> checks the permission bits of all existing directories. It means you
> need the correct privilege for the directories including the lower
> branches.
> The test for a non-directory is more simple. It checks only the
> topmost inode.
> ----------------------------------------------------------------------

Ownership handled the same as permissions?


I tried an ext2 image.  It worked but is complicated to set up as I
have to accurately determine the size of the application files when
creating it else it either doesn't have enough space or wastes space.
I tried squashfs and found it was much easier to create as the
mksquashfs tool takes the source directory, compresses it as it reads
and writes it to the image file (which it creates).  Plus it saves
space with compression although only a little with Diablo II as its
media files are already compressed (2GB vs. 2.3GB).

find /srv/wine/wine-Diablo_II -type d -exec chmod ugo+rwX '{}' \;
find /srv/wine/wine-Diablo_II -type f -exec chmod ugo+rwX '{}' \;
mksquashfs /srv/wine/.wine-Diablo_II /srv/wine/Diablo_II-sqfs.img
mount /srv/wine/Diablo_II-sqfs.img /srv/wine/wine-Diablo_II-sqfs -t
squashfs -o ro,loop
mount -v -t aufs -o
br:/home/administrator/.wine-Diablo_II_rw=rw:/srv/wine/wine-Diablo_II-sqfs=ro
none /home/administrator/.wine-Diablo_II

Gnome gvfs doesn't show the mounted squash file so I avoid that bug as well.

This solves my problem.  Thanks!

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb

Reply via email to