[Patches] mount -o softdep (was: Re: soft updates and qmail (RE: qmail IO problems))

2001-02-11 Thread Stefan Esser
On 2001-02-07 05:20 -0800, Peter Wemm [EMAIL PROTECTED] wrote: [ Follow-ups to the FreeBSD-Audit mail list only, please ... ] Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Peter Wemm writes: So that fsck(8) can see what mode the FS *was* mounted in last time. That bears no

Re: [Patches] mount -o softdep (was: Re: soft updates and qmail (RE: qmail IO problems))

2001-02-11 Thread Peter Wemm
Stefan Esser wrote: On 2001-02-07 05:20 -0800, Peter Wemm [EMAIL PROTECTED] wrote: [ Follow-ups to the FreeBSD-Audit mail list only, please ... ] Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Peter Wemm writes : So that fsck(8) can see what mode the FS *was* mounted in last

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-10 Thread Aleksandr A.Babaylov
Matt Dillon writes: :Matt Dillon wrote: : Yes. In general softupdates will make the entire filesystem safer. :Does it make sense to use softupdates on file systems like / and :/usr which have little file creation/removal? I have had softupdates turned on for all of my mount points

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-10 Thread Matt Dillon
: My recommendation is to turn softupdates on for everything you have, : and for us to make it a newfs default as well. At least in -stable. :You use softupdates turned on for all of your ufs. :Understand. :What is the reason to use softupdates for file system :with only atime updates on

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-09 Thread Andre Oppermann
Matt Dillon wrote: Well, after a long conversation with Mr Bernstein and Kirk it turns out that all my blathering about a normal FFS mount being easily corruptable due to a crash occuring during heavy disk I/O (e.g. from qmail) is so much smoke. The fsync()/rename()

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-09 Thread Matt Dillon
:I do. Is it safe there as well (from your point of view)? : :-- :Andre Yes. In general softupdates will make the entire filesystem safer. The commit sequencing doesn't match what qmail expects, but there are so many fsyncs going on that the absolute worse that can happen in a

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-09 Thread Greg Black
Matt Dillon wrote: Yes. In general softupdates will make the entire filesystem safer. Does it make sense to use softupdates on file systems like / and /usr which have little file creation/removal? Greg To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-09 Thread Matt Dillon
: :Matt Dillon wrote: : : Yes. In general softupdates will make the entire filesystem safer. : :Does it make sense to use softupdates on file systems like / and :/usr which have little file creation/removal? : :Greg I have had softupdates turned on for all of my mount points for over

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-08 Thread Tony Finch
Greg Black [EMAIL PROTECTED] wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page for rename(2) before making suggestions? I did. I'm glad I was right that it's deleting the destination that is the problem.

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-08 Thread Matt Dillon
: already existing? : :Why not just read the man page for rename(2) before making :suggestions? : :I did. I'm glad I was right that it's deleting the destination that is :the problem. I would have thought it would be easy to be sure that :spool filenames are unique, but OTOH I guess that's not

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-08 Thread Matt Dillon
Well, after a long conversation with Mr Bernstein and Kirk it turns out that all my blathering about a normal FFS mount being easily corruptable due to a crash occuring during heavy disk I/O (e.g. from qmail) is so much smoke. The fsync()/rename() combination that QMail does

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Greg Black writes: Matt Dillon wrote: And, I would say, that for any mailer creating and deleting files in a spool directory at a high rate, *ONLY* a filesystem with softupdates turned on or a journaling filesystem such as XFS or ReiserFS can be

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Maxime Henrion
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Greg Black writes: Matt Dillon wrote: It seems to me that you're saying that softupdates is now the recommended way to go -- so why does 4.2-Release still have the dire warnings in /sys/ufs/ffs/README.softupdates? Is that file

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Tony Finch
Andre Oppermann [EMAIL PROTECTED] wrote: Qmail has a couple of directories for the different states a queued message goes through. The whole queue structure is required to be on the same partition/disk. After the completing of each step in the queue it is moved through the use of link() and then

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Greg Black
Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page for rename(2) before making suggestions? To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Maxime Henrion writes: What do you think of what NetBSD implemented ? softupdates is now enabled via a mount option. This seems cleaner than the tunefs -n enable thing. I have never understood why it was a tunefs thing... -- Poul-Henning Kamp | UNIX since

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Peter Wemm
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Maxime Henrion writes: What do you think of what NetBSD implemented ? softupdates is now enabled vi a a mount option. This seems cleaner than the tunefs -n enable thing. I have never understood why it was a tunefs thing... So

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Peter Wemm writes: Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Maxime Henrion writes: What do you think of what NetBSD implemented ? softupdates is now enabled vi a a mount option. This seems cleaner than the tunefs -n enable thing. I have

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread mouss
At 21:25 07/02/01 +1000, Greg Black wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page for rename(2) before making suggestions? I find nothing convincing in the manpage. Could you please tell what I am

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Greg Black
mouss wrote: At 21:25 07/02/01 +1000, Greg Black wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page for rename(2) before making suggestions? I find nothing convincing in the manpage. Could you

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Alfred Perlstein
* Greg Black [EMAIL PROTECTED] [010207 13:05] wrote: mouss wrote: At 21:25 07/02/01 +1000, Greg Black wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page for rename(2) before making

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Greg Black
Alfred Perlstein wrote: * Greg Black [EMAIL PROTECTED] [010207 13:05] wrote: mouss wrote: At 21:25 07/02/01 +1000, Greg Black wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new filename already existing? Why not just read the man page

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-07 Thread Alfred Perlstein
* Greg Black [EMAIL PROTECTED] [010207 17:33] wrote: Alfred Perlstein wrote: * Greg Black [EMAIL PROTECTED] [010207 13:05] wrote: mouss wrote: At 21:25 07/02/01 +1000, Greg Black wrote: Tony Finch wrote: Why not just use rename(2)? To protect against the new

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
: :In message [EMAIL PROTECTED], :Charles Randall writes: :The qmail FAQ specifically recommends against soft updates for the mail :queue. : :http://cr.yp.to/qmail/faq/reliability.html#filesystems : :Is this incorrect? : : :It seems to indicate that qmail doesn't use fsync(2) as much as it

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Charles Randall writes: The qmail FAQ specifically recommends against soft updates for the mail queue. http://cr.yp.to/qmail/faq/reliability.html#filesystems Is this incorrect? It seems to indicate that qmail

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Mike Silbersack
On Tue, 6 Feb 2001, Rik van Riel wrote: The system call used to guarantee this is fsync (and friends?); if qmail doesn't use it but makes assumptions that aren't true on any decent OS out there ... regards, Rik Well, the various qmail programs do seem to fsync (though I'm not sure if

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Matt Dillon writes: : :In message [EMAIL PROTECTED], Charles Randall writes: :The qmail FAQ specifically recommends against soft updates for the mail :queue. : :http://cr.yp.to/qmail/faq/reliability.html#filesystems : :Is this incorrect? : : :It seems to indicate

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:softupdates disk may wind up unwinding 'more' of the last few moments :worth of operations then a normal filesystem would. And, I might add, :Reiser is the same way. : :The only way to guarentee that file data is written to disk, with any :filesystem no matter how it is

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:Well, the various qmail programs do seem to fsync (though I'm not sure if :it's in the right places.) In any case, this link seems to throw some :light on the situation: : :ftp://elektroni.ee.tut.fi/pub/qmail_linux_metadata_message : :Now, I have no clue if this is correct or not, but the core

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Mike Silbersack wrote: On Tue, 6 Feb 2001, Rik van Riel wrote: The system call used to guarantee this is fsync (and friends?); if qmail doesn't use it but makes assumptions that aren't true on any decent OS out there ... Well, the various qmail programs do seem to

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Matt Dillon wrote: QMail's FAQ is totally incorrect. No major filesystem -- be it FFS, EX2FS, Reiser, FFS+Softupdates, guarentees that when you write() and close() a file that the file will then survive a disk crash. All these filesystems guarentee is

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:with fsync(), so softupdates is not going to be too much worse then :other FS's. : :Actually, if you don't use fsync you do loose more work with :softupdates than if you use plain UFS. : :Softupdates can delay directory updates which plain UFS will runs :synchronously, and consequently

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Matt Dillon writes: :softupdates disk may wind up unwinding 'more' of the last few moments :worth of operations then a normal filesystem would. And, I might add, :Reiser is the same way. : :The only way to guarentee that file data is written to disk,

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Julian Elischer
Mike Silbersack wrote: On Tue, 6 Feb 2001, Rik van Riel wrote: The system call used to guarantee this is fsync (and friends?); if qmail doesn't use it but makes assumptions that aren't true on any decent OS out there ... regards, Rik Well, the various qmail programs do seem

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:kirk said (but I have not completely checked it) that if you fsync a file, :it will effectively fsync all the way back to the root of the filesystem. : :I don't know how true this is, but cerainly the inode is updated before :fsync returns. I cannot tell if any directory entries pointing at

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
: consistent state. Softupdates is considerably better at guarenteeing : this consistency (as is something like Reiser), but if you crash a : softupdates disk may wind up unwinding 'more' of the last few moments : worth of operations then a normal filesystem would. And, I might

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Charles Randall writes: The qmail FAQ specifically recommends against soft updates for the mail queue. http://cr.yp.to/qmail/faq/reliability.html#filesystems Is this incorrect? It seems to indicate that qmail doesn't use

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Matt Dillon wrote: :Reiserfs and ext3 have write-ahead logs and, AFAIK, fsync() :will not return until there is a commit point in the log. : :This means that fsync() will guarantee that the transactions :won't be unwound (unless I've overlooked some weird special :case

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:Poul-Henning Kamp wrote: : : In message [EMAIL PROTECTED], :Charles Randall writes: : The qmail FAQ specifically recommends against soft updates for the mail : queue. : : http://cr.yp.to/qmail/faq/reliability.html#filesystems : : Is this incorrect? : : : It seems to indicate that qmail

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Mike Silbersack
On Tue, 6 Feb 2001, Matt Dillon wrote: I did a quick search of the qmail site but couldn't find an email address to report the FAQ issue to. If QMail calls fsync() in a reasonable manner, then softupdates is perfectly safe and the QMail FAQ needs to be updated to recommend

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Charles Randall writes: The qmail FAQ specifically recommends against soft updates for the mail queue. http://cr.yp.to/qmail/faq/reliability.html#filesystems Is this incorrect?

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
:On Tue, 6 Feb 2001, Matt Dillon wrote: : : I did a quick search of the qmail site but couldn't find an email : address to report the FAQ issue to. If QMail calls fsync() in a : reasonable manner, then softupdates is perfectly safe and the QMail : FAQ needs to be updated to

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Matt Dillon writes: : :In message [EMAIL PROTECTED], Charles Randall writes: :The qmail FAQ specifically recommends against soft updates for the mail :queue. : :http://cr.yp.to/qmail/faq/reliability.html#filesystems : :Is this

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Matt Dillon wrote: :softupdates disk may wind up unwinding 'more' of the last few moments :worth of operations then a normal filesystem would. And, I might add, :Reiser is the same way. : :The only way to guarentee that file data is written to disk, with any :

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Mike Silbersack wrote: On Tue, 6 Feb 2001, Rik van Riel wrote: The system call used to guarantee this is fsync (and friends?); if qmail doesn't use it but makes assumptions that aren't true on any decent OS out there ... Well, the

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Matt Dillon wrote: :Well, the various qmail programs do seem to fsync (though I'm not sure if :it's in the right places.) In any case, this link seems to throw some :light on the situation: : :ftp://elektroni.ee.tut.fi/pub/qmail_linux_metadata_message : :Now, I have no clue if this is

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Matt Dillon wrote: QMail's FAQ is totally incorrect. No major filesystem -- be it FFS, EX2FS, Reiser, FFS+Softupdates, guarentees that when you write() and close() a file that the file will then survive a disk crash. All these

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Andre Oppermann wrote: Date: Tue, 06 Feb 2001 20:32:07 +0100 From: Andre Oppermann [EMAIL PROTECTED] NAME link - make a hard file link DESCRIPTION The link() function call atomically creates the specified directory entry

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Andre Oppermann wrote: Qmail depends on ordered-metadata updates (Terry! :-). That means if you issue a link() to the new place and a unlink() in the old place it should guarantee that the link() happens *BEFORE* the unlink(). As it is, I can only recommend people to

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Mike Silbersack wrote: On Tue, 6 Feb 2001, Matt Dillon wrote: I did a quick search of the qmail site but couldn't find an email address to report the FAQ issue to. If QMail calls fsync() in a reasonable manner, then softupdates is perfectly safe and the QMail FAQ

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
: Pre-softupdate BSD semantics, apparently. Doesn't sound like : the smartest thing to do when you want a reliable MTA... : :This description is not entirely right. : :Qmail depends on ordered-metadata updates (Terry! :-). That means :if you issue a link() to the new place and a unlink() in the

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Andre Oppermann wrote: Rik van Riel wrote: On Tue, 6 Feb 2001, Matt Dillon wrote: Reiserfs and ext3 have write-ahead logs and, AFAIK, fsync() will not return until there is a commit point in the log. Also FFS/UFS will not return before the file and directory entry

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Matt Dillon wrote: :On Tue, 6 Feb 2001, Matt Dillon wrote: : : I did a quick search of the qmail site but couldn't find an email : address to report the FAQ issue to. If QMail calls fsync() in a : reasonable manner, then softupdates is perfectly safe and the QMail : FAQ

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: Qmail depends on ordered-metadata updates (Terry! :-). That means if you issue a link() to the new place and a unlink() in the old place it should guarantee that the link() happens *BEFORE* the unlink(). As it is, I

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
: :This information is in fact correct. Have a look at the FreeBSD link(2) :man page: : :LINK(2) FreeBSD System Calls Manual :LINK(2) Andre, I think there *might* be a dozen people in the world that understand UFS/FFS better then I do, but none of them

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
Since I'm still being cc'd on this... :) * Matt Dillon [EMAIL PROTECTED] [010206 11:56] wrote: : :This information is in fact correct. Have a look at the FreeBSD link(2) :man page: : :LINK(2) FreeBSD System Calls Manual :LINK(2) Andre, I think

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Jos Backus
On Tue, Feb 06, 2001 at 10:59:09AM -0800, Matt Dillon wrote: I did a quick search of the qmail site but couldn't find an email address to report the FAQ issue to. Try sending mail to [EMAIL PROTECTED] -- Jos Backus _/ _/_/_/"Modularity is not a hack."

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Matt Dillon wrote: : Pre-softupdate BSD semantics, apparently. Doesn't sound like : the smartest thing to do when you want a reliable MTA... : :This description is not entirely right. : :Qmail depends on ordered-metadata updates (Terry! :-). That means :if you issue a link() to the new

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: Rik van Riel wrote: On Tue, 6 Feb 2001, Matt Dillon wrote: Reiserfs and ext3 have write-ahead logs and, AFAIK, fsync() will not return until there is a commit point in the log. Also FFS/UFS will not return before

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
* Andre Oppermann [EMAIL PROTECTED] [010206 12:07] wrote: Yes, my understanding of the meaning of "ordered meta-date update" as I have grasped it from Terry's rants in the past years is not that all meta-data updates on a filesystem have to be done one-after-the-other but ordered in respect

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Matt Dillon
: banging on unrelated areas of the filesystem in parallel, and an : fsync() of one descriptor would have to wait for the entire filesystem : to reach a synchronization point to guarentee metadata update ordering. : This creates a serious scaleability issue within a filesystem! :

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Matt Dillon wrote: : :This information is in fact correct. Have a look at the FreeBSD link(2) :man page: : :LINK(2) FreeBSD System Calls Manual :LINK(2) Andre, I think there *might* be a dozen people in the world that understand UFS/FFS better then I do, but

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Andre Oppermann wrote: But please answer me one question: Is the link() call atomically in FFS/UFS w or w/o softupdates? Meaning when the call returns the meta- data is written to stable storage like with fsync()? Since when does `atomic' equal `synchronous' ? regards,

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: But please answer me one question: Is the link() call atomically in FFS/UFS w or w/o softupdates? Meaning when the call returns the meta- data is written to stable storage like with fsync()? Since when does `atomic'

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
* Matt Dillon [EMAIL PROTECTED] [010206 12:19] wrote: : banging on unrelated areas of the filesystem in parallel, and an : fsync() of one descriptor would have to wait for the entire filesystem : to reach a synchronization point to guarentee metadata update ordering. : This

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:07] wrote: Yes, my understanding of the meaning of "ordered meta-date update" as I have grasped it from Terry's rants in the past years is not that all meta-data updates on a filesystem have to be done

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Rik van Riel
On Tue, 6 Feb 2001, Andre Oppermann wrote: Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: But please answer me one question: Is the link() call atomically in FFS/UFS w or w/o softupdates? Meaning when the call returns the meta- data is written to stable storage like

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
* Andre Oppermann [EMAIL PROTECTED] [010206 12:30] wrote: Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: But please answer me one question: Is the link() call atomically in FFS/UFS w or w/o softupdates? Meaning when the call returns the meta- data is written to

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Jeroen Ruigrok/Asmodai
-On [20010206 20:25], Andre Oppermann ([EMAIL PROTECTED]) wrote: ... provided that qmail calls fsync(2). $ cd qmail-ldap/ $ grep fsync * | wc -l 21 Of course that says nothing if the fsync()'s are not placed at strategic places. fsync(); fsync(); fsync(); . . . fsync(); And _then_ the

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:30] wrote: Rik van Riel wrote: On Tue, 6 Feb 2001, Andre Oppermann wrote: But please answer me one question: Is the link() call atomically in FFS/UFS w or w/o softupdates? Meaning when the call returns

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
* Andre Oppermann [EMAIL PROTECTED] [010206 12:33] wrote: Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:07] wrote: Yes, my understanding of the meaning of "ordered meta-date update" as I have grasped it from Terry's rants in the past years is not that all

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:33] wrote: Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:07] wrote: Yes, my understanding of the meaning of "ordered meta-date update" as I have grasped it from Terry's rants in

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Julian Elischer
Alfred Perlstein wrote: Does sendmail even use fsync()? It better. :) since the last time I know of, Kirk and Eric lived in the same building it would seem likely that Eric would know to do that.. -- __--_|\ Julian Elischer / \ [EMAIL PROTECTED] ( OZ)

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Alfred Perlstein
* Andre Oppermann [EMAIL PROTECTED] [010206 12:58] wrote: Alfred Perlstein wrote: Basically, you want a fsync right before the IPC. This should bring the metadata up to date with what's in-core and you should then be safe when you reply with your 250 accepted message. Like this

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andre Oppermann
Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:58] wrote: Alfred Perlstein wrote: Basically, you want a fsync right before the IPC. This should bring the metadata up to date with what's in-core and you should then be safe when you reply with your 250

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Jack Rusher
Andre Oppermann wrote: Since when does `atomic' equal `synchronous' ? Because otherwise it would not be atomically, would it? I am loath to add to this bloated thread, but... atomic and durable aren't the same thing. This is why A.C.I.D. semantics contain both A D. The atomicity

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Andrew Reilly
On Tue, Feb 06, 2001 at 12:13:57PM -0800, Alfred Perlstein wrote: * Andre Oppermann [EMAIL PROTECTED] [010206 12:07] wrote: Does sendmail even use fsync()? It better. :) Quick grep of the sendmail sources shows most of the six fsync calls protected by a flag (SuperSafe or nofsync ). I

Re: soft updates and qmail (RE: qmail IO problems)

2001-02-06 Thread Greg Black
Matt Dillon wrote: And, I would say, that for any mailer creating and deleting files in a spool directory at a high rate, *ONLY* a filesystem with softupdates turned on or a journaling filesystem such as XFS or ReiserFS can be considered crash-surviveable. Synchronous