Bug#292630: flushing the write-buffer when saving inhibit hd spin down

2005-04-25 Thread Stefano Zacchiroli
On Mon, Apr 25, 2005 at 10:56:26AM +0200, Bram Moolenaar wrote:
  Do you think a boolean option could be added for enabling per-user
  configuring of this behaviour?
 Vim 7 has the 'fsync' option.

Wonderful! Do you plan to add it to vim 6.3 as well?

If not, are you willing to accept a patch of mine which add that option
to vim 6.3 as well?

Many thanks.
Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#292630: flushing the write-buffer when saving inhibit hd spin down

2005-04-25 Thread Bram Moolenaar

Stefano -

 On Mon, Apr 25, 2005 at 10:56:26AM +0200, Bram Moolenaar wrote:
   Do you think a boolean option could be added for enabling per-user
   configuring of this behaviour?
  Vim 7 has the 'fsync' option.
 
 Wonderful! Do you plan to add it to vim 6.3 as well?
 
 If not, are you willing to accept a patch of mine which add that option
 to vim 6.3 as well?

Vim 6.3 is the stable version, I don't add new features to it.

- Bram

-- 
hundred-and-one symptoms of being an internet addict:
268. You get up in the morning and go online before getting your coffee.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  Project leader for A-A-P -- http://www.A-A-P.org///
 \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#292630: flushing the write-buffer when saving inhibit hd spin down

2005-04-25 Thread Stefano Zacchiroli
tags 292630 + wontfix
thanks

On Mon, Apr 25, 2005 at 11:51:30AM +0200, Bram Moolenaar wrote:
  Wonderful! Do you plan to add it to vim 6.3 as well?
 Vim 6.3 is the stable version, I don't add new features to it.

Ok, I'm thus tagging wontfix the bug on the debian BTS.
It will be fixed in vim 7 :-)

Many thanks.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#292630: flushing the write-buffer when saving

2005-01-28 Thread Diether Knof
Package: vim
Version: 6.3-058+1

Every time, I save my file in vim (with ':w'), my harddrive is flushed:

  Jan 28 11:43:10 sybille kernel: vim(3283): dirtied inode 3702891 
(vim.flush.swp) on hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): dirtied inode 10569207 (?) on hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): dirtied inode 10567874 (tmp) on 
hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): dirtied inode 10567874 (tmp) on 
hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): READ block 169082880 on hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): WRITE block 169168416 on hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): WRITE block 169083272 on hde1
  Jan 28 11:43:55 sybille kernel: vim(3283): dirtied inode 10569207 (vim.flush) 
on hde1

Since I use 'laptop_mode', I want my harddrive to spin down, but saving with 
vim prevents this.
In the changelog (/usr/share/doc/vim/html/version6.html) I have found the 
following entry:

  Patch 6.2.499
  Problem:When writing a file and halting the system, the file might be lost
  when using a journalling file system.
  Solution:   Use fsync() to flush the file data to disk after writing a file.
  (Radim Kolar)
  Files:src/fileio.c

First I think this is not something vim has to bother about, but the 
bdflush-daemon. Second I use ext2, so since I use no journaling file system the 
fsync() command is not necessary.

I have also searched for an option to turn the flushing off, but I have found 
only 'swapsync' for the swapfile, nothing for the normal file.

Greetings
Diether Knof

P.S.
Part of my vimrc:

set swapsync=
set updatecount=200
set updatetime=6000
set backupdir=~/.vim/tmp/
set directory=~/.vim/tmp/
set hidden
set nobackup


signature.asc
Description: Digital signature