All of lore.kernel.org
 help / color / mirror / Atom feed
* Reiserfs/emacs incompatibility/bug ?
@ 2002-09-28  9:28 arthur.chereau
  2002-09-29 15:23 ` fsck mode halfway between --fix-fixable and --rebuild-tree ? Matthias Urlichs
  2002-09-29 23:54 ` Reiserfs/emacs incompatibility/bug ? Matthias Andree
  0 siblings, 2 replies; 25+ messages in thread
From: arthur.chereau @ 2002-09-28  9:28 UTC (permalink / raw)
  To: reiserfs-list

Hi,

I've noted a strange behavior of emacs when used with the Reiserfs filesystem.
This doesn't seem to happen with the other filesystems, so it may be related to Reiserfs.

If you use emacs, here are how to reproduce this:

The "backup-by-copying" option tells emacs to make a backup file by copying the
original file, thus preserving the original file's metadata. Let's have the following
.emacs:
$ cat .emacs
(setq backup-by-copying t)
$

The correct bahavior is:
$ emacs test
$ ls -i test*
2971971 test
$ emacs test
$ ls -i test*
2971971 test 2971972 test~
$ emacs test
$ ls -i test*
2971971 test 2971973 test~

This is what is observed on an ext2 fs, for instance.

Now let's do the same on a reiserfs filesystem:
$ emacs test
$ ls -i test*
1505188 test
$ emacs test
$ ls -i test*
1505190 test 1505189 test~
$ emacs test
$ ls -i test*
1505191 test 1505189 test~

Here the backup file metadata are preserved, instead of the original file ones.

When not setting the backup-by-copying option, the file metadata are sometimes reset to
644, which can be annoying for scripts.
I couldn't find a way to reproduce that behavior at 100%.

This happens with the latest emacs from cvs on a reiseirfs 3 filesystem.
This never happens with an emacs-like tool like jed.

RMS doesn't think it's a bug in emacs as it works on other filesystems.

So maybe emacs handles moves/renames in way that:
- reveals a bug in reiserfs
- doesn't work well with reiserfs and emacs developpers are not aware of that

------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2002-10-02 12:21 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-28  9:28 Reiserfs/emacs incompatibility/bug ? arthur.chereau
2002-09-29 15:23 ` fsck mode halfway between --fix-fixable and --rebuild-tree ? Matthias Urlichs
2002-09-30  6:18   ` Oleg Drokin
2002-09-30 11:12     ` Hans Reiser
2002-09-30 11:15       ` Oleg Drokin
2002-09-30 11:17       ` Matthias Urlichs
2002-09-30 11:22         ` Oleg Drokin
2002-09-30 13:08           ` Matthias Urlichs
2002-09-30 13:20             ` Hans Reiser
2002-09-30 17:36               ` Matthias Urlichs
2002-09-30 17:56                 ` Valdis.Kletnieks
2002-10-01  6:37               ` Nikita Danilov
2002-10-01  7:32                 ` Matthias Urlichs
2002-10-01  7:44                   ` Nikita Danilov
2002-10-01 11:02                     ` Hans Reiser
2002-10-01 11:00                 ` Hans Reiser
2002-10-01 11:12                   ` Nikita Danilov
2002-10-01 12:15                   ` Matthias Urlichs
2002-10-01 18:43                     ` Hans Reiser
2002-10-02  8:13                       ` Matthias Urlichs
2002-10-02 11:04                         ` Vitaly Fertman
2002-10-02 12:21                           ` Matthias Urlichs
2002-09-30 15:15             ` Vitaly Fertman
2002-09-30 11:43         ` Vitaly Fertman
2002-09-29 23:54 ` Reiserfs/emacs incompatibility/bug ? Matthias Andree

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.