Re: Packing problems: fixed
Toby Dickenson <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb.dirstorage |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 09 November 2004 11:47, Matt Hamilton wrote: > I guess the main question is: Why did DirectoryStorage not fail during > the pack if it could not mark/read the files? Congratulations. Youve just uncovered the first data-loss bug since DirectoryStorage hit "1.0" nearly three years ago. The class _PermissionsMarker in PosixFilesystem.py contains an explicit comparison against file owner and process uid. It 'conservatively' reports that any files not owned by the current process uid are marked. Thats the right thing to do during the 'sweep' phase since marked files are left alone. It is *not* the right thing to do during the 'mark' phase since the objects referenced by that one will not get scanned. You must have a root-owned object reachable only by references from objects not owned by root. You will be safe now all your files have the same owner. > Luckily we could just rename all the -deleted files back > and we were OK. Events like this are what disaster-recovery features are made for ;-) -- Toby Dickenson ____________________ Important Notice: This email and any attachments are confidential and may contain trade secrets or be legally privileged. If you have received this email in error you must not use, rely upon, disclose, copy or distribute the contents. Please reply to the sender so that proper delivery can be arranged and delete the email from your computer. Gemini Data Loggers monitor incoming and outgoing email to ensure satisfactory customer service, maintain company security and prevent abuse of their email system. However, any views expressed in this email are not necessarily those of Gemini and Gemini cannot be held responsible for the content. Gemini makes best efforts to ensure emails are virus free; however you are advised to carry out your own checks. Gemini does not accept responsibility for any damage resulting from email viruses. ____________________ ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click