public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bodo Eggert <harvested.in.lkml@posting.7eggert.dyndns.org>
To: Hiroyuki Machida <machida@sm.sony.co.jp>,
	hirofumi@mail.parknet.co.jp, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Posix file attribute support on VFAT
Date: Tue, 09 Aug 2005 00:32:18 +0200	[thread overview]
Message-ID: <E1E2GAN-0003Pj-2l@be1.lrz> (raw)
In-Reply-To: 4zfoZ-5u4-9@gated-at.bofh.it

Hiroyuki Machida <machida@sm.sony.co.jp> wrote:

> For newly created and/or modified files/dirs, system can utilize
> full posix attributes, because memory resident inode storage can
> hold those. After umount-mount cycle, system may lose some
> attributes to preserve VFAT format.

Inodes may be reclaimed, therefore you might also lose some attributes at
runtime. For your users, that will look like a heisenbug. A similar bug
has been reported for procfs. Is your implementation affected?

> - Special file
>         To distinguish special files, look if this fat dir entry 
>         has ATTR_SYS, first. If it has ATTR_SYS, then check
>         1st. LSB bit in ctime_cs, refered as "special file flag".
>         If set,  this file is created under VFAT with "posix_attr". 
>         Look up TYPE field to decide special file type.
>         This spcial file detection mothod has some flaw to make
>         potential confusion. E.g. some system file created under
>         dos/win may be treated as special file.  However in most case,
>         user don't create system file under dos/win.

You can add additional magic, e.g.: nodes must be empty, except for symlinks
which must be not larger than 4KB (current PATH_MAX?). This will get rid
of io.sys, logo.sys etc.\. If you want to be really sure, prepend a magic
code to the on-disk representation of symlinks.

-- 
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.

       reply	other threads:[~2005-08-08 22:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4zfoZ-5u4-9@gated-at.bofh.it>
2005-08-08 22:32 ` Bodo Eggert [this message]
2005-08-09  0:32   ` [PATCH] Posix file attribute support on VFAT Machida, Hiroyuki
2005-08-09 12:59     ` Bodo Eggert
2005-08-08 12:54 Hiroyuki Machida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1E2GAN-0003Pj-2l@be1.lrz \
    --to=harvested.in.lkml@posting.7eggert.dyndns.org \
    --cc=7eggert@gmx.de \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=machida@sm.sony.co.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox