| To: | Ewan Chalmers <ewan.chalmers@xxxxxxxxx>, xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: Does XFS support the sync mount option? |
| From: | Ewan Chalmers <ewan.chalmers@xxxxxxxxx> |
| Date: | Thu, 12 Feb 2009 23:46:48 +0000 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oy3/cMCtuaqzUIoD1y0mN4uz81BJn0e1CDbzmeVXt1s=; b=UnGgDuShf/i7GNoFYXzTIn1ThWtEfPPGcDHiAY5UtVV9BoUkM2d2gL2AtnQLwXcEo+ tKXLm32ifsRyxktnvDtxTX1M/5ZHSQgcxDrvaFSAfg87imdrBlzLL7Wpnqcnnfs7VHqs 5ZTbj+lMdBuJjEUmWPu105gAlfZDQRsr9YPg0= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=X/n5TmkNAAJVyDo8GTF+IfcHOOnXx5FW996EbXKj1e5BXg06cnHUW9v3xmNsOz3q5C YpxHvhn2/E7oRiKwgrGE/iyIJYYmOx7b8HYiTMY9AIduvFCxDs3uBRuqTTUBGJCGr/HB O8yZV+3RJNKqTQkOetsc11HUcx6rT+yfAZ6sQ= |
| In-reply-to: | <20090206230502.GQ24173@disturbed> |
| References: | <884979c90902050643m78d2e0dbt85aa7f4369e243ef@xxxxxxxxxxxxxx> <20090206230502.GQ24173@disturbed> |
Thanks for your detailed reply. > And "sync" only works if you turn drive write caches off or have > barriers enabled. There are many people out there that have systems > that are suseptible to fatal filesystem corruption that could be > triggered by doing this (because critical metadata is lost from > the volatile write cache on the drive when you power it off). According to the FAQ, barriers are enabled by default since 2.6.17. I have 2.9.8, so I guess barriers are enabled. I have checked and dmesg contains no errors relating to barriers. Also according the FAQ... "With a single hard disk and barriers turned on (on=default), the drive write cache is flushed before an after a barrier is issued. A powerfail "only" loses data in the cache but no essential ordering is violated, and corruption will not occur." So it sounds like pulling the plug on the disk should not cause corruption in this case (sync mount and barriers default enabled). Or am I just plain wrong? (BTW, I've done an xfs_repair which reported no errors.) Thanks, Ewan |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Don't reset di_format in xfs_ifree(), Dave Chinner |
|---|---|
| Next by Date: | Re: Does XFS support the sync mount option?, Eric Sandeen |
| Previous by Thread: | Re: Does XFS support the sync mount option?, Michael Monnerie |
| Next by Thread: | Re: Does XFS support the sync mount option?, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |