Re: Your backup is broken! (W95 only :-)

Anthony Barbachan (barbacha@Hinako.AMBusiness.com)
Sat, 4 Sep 1999 06:49:19 -0400


> 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!!
>

A better option may be to emulate Samba's way of storing the
archive/hidden/system/read-only bits.

archives/hidden/system are each marked by one of the executable bits.
read-only is taken care of by the write allowed bits.

This way if you decide to restore your files to a samba server share
instead, all your attributes will show up correctly. Maybe the uid/gid bits
can be used instead to store the extra NTFS attributes.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/