I had turned a truecrypt container mounted in my home directory into the upper dir of a overlay into a non(extra)-encrypted mount point where a different volume (LVM) was also mounted.
But to my surprise I discovered that the upper dir is used for every kind of changes to the filesystem. If problems arise with the upper dir mount point, strange things may occur. I believe at one point my truecrypt was dismounted, but the overlayfs kept writing change to the now 'empty' mountpoint in my home dir.
I had suspected or believed that , well, quite silly perhaps, but let us not judge me now . I had believed that the root-level directories (for that mountpoint) that came from the upper dir would be used for writing changes back to the upper dir, and root-level directories that came from the lower dir would be used for writing changes back to the lowerdir. I was a bit mistaken.
There was also in the upper dir (the truecrypt mount) a symlink that had the same name as the directory that it was about in the lower dir. So changes written supposedly back to the upper dir (the truecrypt container) followed the symlink on that truecrypt container to find a level deeper into the truecrypt container. But, because the truecrypt container had since been dismounted, but the updates had not made it through to the overlayfs, it was still following that symlink and writing changes into the now empty (or, soon to be not empty anymore) mount point of the truecrypt in my home folder (that was no longer mounted in truecrypt, but was still overlayed with the different volume).
Funky **** man!!
In my chaos I then deleted the new directory structure in my home dir mount point, and later undeleted it again and it is now sitting in my /root/ folder ;-).
I am seriously trying to get back to the exact point where I started deviating...
And I am seriously thinking this is calling for subversion to be put to use .
Since we are also talking (or I am) about programming code now (java files) (and one javacc file).
My mind was filling up with even more chaos due to all the changes and I didn't know what was what or where anymore . Then someone where I reside currently broke my concentration to such an extent that I lost all hope of recovering the where's what and how's how. So I even started deleting all kinds of backups of older files just to make sure only a single version remains (in my mind).
Bah.
But to my surprise I discovered that the upper dir is used for every kind of changes to the filesystem. If problems arise with the upper dir mount point, strange things may occur. I believe at one point my truecrypt was dismounted, but the overlayfs kept writing change to the now 'empty' mountpoint in my home dir.
I had suspected or believed that , well, quite silly perhaps, but let us not judge me now . I had believed that the root-level directories (for that mountpoint) that came from the upper dir would be used for writing changes back to the upper dir, and root-level directories that came from the lower dir would be used for writing changes back to the lowerdir. I was a bit mistaken.
There was also in the upper dir (the truecrypt mount) a symlink that had the same name as the directory that it was about in the lower dir. So changes written supposedly back to the upper dir (the truecrypt container) followed the symlink on that truecrypt container to find a level deeper into the truecrypt container. But, because the truecrypt container had since been dismounted, but the updates had not made it through to the overlayfs, it was still following that symlink and writing changes into the now empty (or, soon to be not empty anymore) mount point of the truecrypt in my home folder (that was no longer mounted in truecrypt, but was still overlayed with the different volume).
Funky **** man!!
In my chaos I then deleted the new directory structure in my home dir mount point, and later undeleted it again and it is now sitting in my /root/ folder ;-).
I am seriously trying to get back to the exact point where I started deviating...
And I am seriously thinking this is calling for subversion to be put to use .
Since we are also talking (or I am) about programming code now (java files) (and one javacc file).
My mind was filling up with even more chaos due to all the changes and I didn't know what was what or where anymore . Then someone where I reside currently broke my concentration to such an extent that I lost all hope of recovering the where's what and how's how. So I even started deleting all kinds of backups of older files just to make sure only a single version remains (in my mind).
Bah.
Comment