Skip to contentSkip to conversation

man: gfs2.5: remove barrier automatically turned off note

PATCH New Alexander Aring 3 participants 4 messages Mar 25, 2021 – Mar 29, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man: gfs2.5: remove barrier automatically turned off note

This patch removes a note that the barrier option is automatically turned off if the underlaying device doesn't support I/O barriers. So far I understand it's default on, means "barriers" option is applied which should not make any problems if the underlaying device supports something or not. There is by the kernel or gfs2-utils no automatically detection going on which changes this mount option. However there could be third party software which has an automatically detection but this isn't part of kernel or gfs2-utils collection and the user is running out of scope of this manpage entry.

Additional this patch adds a point at the end of the manpage section entry which seems to be missing.

---
 gfs2/man/gfs2.5 | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
gfs2/man/gfs2.5 +4 -5
index 8f67ce23..38d97bb1 100644
@@ -127,11 +127,10 @@ in kernel version 2.6.30 and above.
 .TP
 \fBbarrier\fP
 This option, which defaults to on, causes GFS2 to send I/O barriers
-when flushing the journal. The option is automatically turned off
-if the underlying device does not support I/O barriers. We highly
-recommend the use of I/O barriers with GFS2 at all times unless
-the block device is designed so that it cannot lose its write cache
-content (e.g. its on a UPS, or it doesn't have a write cache)
+when flushing the journal. We highly recommend the use of I/O barriers
+with GFS2 at all times unless the block device is designed so that it
+cannot lose its write cache content (e.g. its on a UPS, or it doesn't
+have a write cache).
 .TP
 \fBcommit=\fP\fIsecs\fR
 This is similar to the ext3 \fBcommit=\fP option in that it sets
Signature · 1 line
2.26.3
#1 lore raw

PATCH 1/1 man: gfs2.5: remove barrier automatically turned off note

Quoted 6 lines · Alexander Aring

This patch removes a note that the barrier option is automatically turned off if the underlaying device doesn't support I/O barriers. So far I understand it's default on, means "barriers" option is applied which should not make any problems if the underlaying device supports something or not. There is by the kernel or gfs2-utils no automatically detection going on which changes this mount option.

Hm, should there be automatic detection? Has there ever been? I'd like to get to the bottom of why this language is here before removing it.

Andy

Quoted 34 lines

However there could be third
party software which has an automatically detection but this isn't part of kernel or gfs2-utils collection and the user is running out of scope of this manpage entry.

Additional this patch adds a point at the end of the manpage section entry which seems to be missing.

---
  gfs2/man/gfs2.5 | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)
gfs2/man/gfs2.5 +4 -5
index 8f67ce23..38d97bb1 100644
@@ -127,11 +127,10 @@ in kernel version 2.6.30 and above.
  .TP
  \fBbarrier\fP
  This option, which defaults to on, causes GFS2 to send I/O barriers
-when flushing the journal. The option is automatically turned off
-if the underlying device does not support I/O barriers. We highly
-recommend the use of I/O barriers with GFS2 at all times unless
-the block device is designed so that it cannot lose its write cache
-content (e.g. its on a UPS, or it doesn't have a write cache)
+when flushing the journal. We highly recommend the use of I/O barriers
+with GFS2 at all times unless the block device is designed so that it
+cannot lose its write cache content (e.g. its on a UPS, or it doesn't
+have a write cache).
  .TP
  \fBcommit=\fP\fIsecs\fR
  This is similar to the ext3 \fBcommit=\fP option in that it sets
#2 lore raw

PATCH 1/1 man: gfs2.5: remove barrier automatically turned off note

Hi,

Quoted 9 lines · Andrew Price
Quoted 6 lines · Alexander Aring

This patch removes a note that the barrier option is automatically turned off if the underlaying device doesn't support I/O barriers. So far I understand it's default on, means "barriers" option is applied which should not make any problems if the underlaying device supports something or not. There is by the kernel or gfs2-utils no automatically detection going on which changes this mount option.

Quoted 3 lines

Hm, should there be automatic detection? Has there ever been? I'd like to get to the bottom of why this language is here before removing it.

no idea if there was ever an auto detection or there exists currently one. I didn't find any auto detection during my research. The related part came in by: 06b5fb87 ("gfs2: man page updates"). My understanding is that this option is default "barrier" and you should do "nobarrier" in cases when you know what you are doing. I even don't know if such automatic detection is possible, the man-page says "(e.g. its on a UPS, or it doesn't have a write cache)" in regards to block devices. I think there is no way in the kernel/user space to check if the block device is behind a UPS. Maybe there exists some in user space over hdparm but then things need to be right connected? Regarding cache handling, you need to know a lot about the used architecture.

I am not sure here as well. I was reading about such automatic detection and wanted to see how it's done with the result: there is no auto detection (in gfs2(kernel)/gfs2-utils software)?

- Alex

#3 lore raw

PATCH 1/1 man: gfs2.5: remove barrier automatically turned off note

Hi,

Quoted 25 lines · Alexander Ahring Oder Aring

Hi,

Quoted 10 lines · Andrew Price
Quoted 6 lines · Alexander Aring

This patch removes a note that the barrier option is automatically turned off if the underlaying device doesn't support I/O barriers. So far I understand it's default on, means "barriers" option is applied which should not make any problems if the underlaying device supports something or not. There is by the kernel or gfs2-utils no automatically detection going on which changes this mount option.

Hm, should there be automatic detection? Has there ever been? I'd like to get to the bottom of why this language is here before removing it.

no idea if there was ever an auto detection or there exists currently one. I didn't find any auto detection during my research. The related part came in by: 06b5fb87 ("gfs2: man page updates"). My understanding is that this option is default "barrier" and you should do "nobarrier" in cases when you know what you are doing. I even don't know if such automatic detection is possible, the man-page says "(e.g. its on a UPS, or it doesn't have a write cache)" in regards to block devices. I think there is no way in the kernel/user space to check if the block device is behind a UPS. Maybe there exists some in user space over hdparm but then things need to be right connected? Regarding cache handling, you need to know a lot about the used architecture.

Quoted 6 lines

I am not sure here as well. I was reading about such automatic detection and wanted to see how it's done with the result: there is no auto detection (in gfs2(kernel)/gfs2-utils software)?

- Alex

Bare in mind that the naming of the barrier mount option is historic and that it is now implemented using flush commands rather than barriers. I don't think there is any automated way to discover if it is safe to run without flushes,

Steve.