lkml.org 
[lkml]   [1999]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectYour backup is broken! (W95 only :-)
Yup, this time there's a problem with a VFAT backup that means the
restored W95 filesystem is always broken. There is just one (AFAIK)
directory that requires the system bit to be set. The C:\WINDOWS\FONTS
directory will not work properly without the S bit set. It's easy
enough to fix, the attached BAT file will reset this and several other
files.

But I had an idea, a nasty ugly idea, at first, but it does grow on you.

Add a mount option: "gidset=400"
This make the gid seen on files to be one of 400..403, they corrispond to:

400 = dos_files
401 = dos_sys
402 = dos_hidden
403 = dos_hiddensys

It's simple, works on any fat fs and will save & restore to any UNIX
backup method. You could add the archive bit in there too, but that's
even more ugly!!

This did lead onto an even nastier idea for long file names ...

Take LFN "abcdefghijk" this will be mapped onto one of:

abcdefgh
abcdef~1
abcdef~2

and so on. Assign each of these a number 0..N, add this number (or four
times it) to the "gidset=?" value for the group id of this file.

Eyuck!! But ...

--
Rob. (Robert de Bath <http://poboxes.com/rdebath>)
<rdebath @ poboxes.com> <http://www.cix.co.uk/~mayday>
attrib +h +s io.sys
attrib +h +s msdos.sys
attrib +h +s system.1st
attrib +h +s detlog.txt
attrib +h +s windows\system.dat
attrib +h +s windows\user.dat
attrib +s windows\fonts
attrib +h bootlog.txt
attrib +h logo.sys
attrib +h setuplog.txt
attrib +h windows\inf
attrib +h windows\spool
attrib +h windows\sysbckup
attrib +h windows\pif
attrib +h windows\recent
attrib +h windows\shellnew
attrib +h windows\ttfcache
attrib +h windows\shelli~1
attrib +h windows\history\desktop.ini
attrib +h windows\tempor~1\desktop.ini
attrib +h windows\fonts\8514fix.fon
attrib +h windows\fonts\8514oem.fon
attrib +h windows\fonts\8514sys.fon
attrib +h windows\fonts\coure.fon
attrib +h windows\fonts\courf.fon
attrib +h windows\fonts\modern.fon
attrib +h windows\fonts\serife.fon
attrib +h windows\fonts\seriff.fon
attrib +h windows\fonts\smalle.fon
attrib +h windows\fonts\smallf.fon
attrib +h windows\fonts\sserife.fon
attrib +h windows\fonts\sseriff.fon
attrib +h windows\fonts\symbole.fon
attrib +h windows\fonts\symbolf.fon
attrib +h +s windows\fonts\vgafix.fon
attrib +h +s windows\fonts\vgaoem.fon
attrib +h +s windows\fonts\vgasys.fon
attrib +h +s windows\fonts\marlett.ttf
attrib +h +s windows\fonts\vga850.fon
attrib +h +s windows\fonts\app850.fon

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.053 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site