Skip to content

Commit 5d7d891

Browse files
committed
Drop the deprecated and now removed barrier XFS mount options
Both barrier and nobarrier were deprecated with the 4.10 kernel [1] and then removed [2] with the 4.19 kernel as now used by Fedora >= 28. Both should be safe to drop at this point. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4cf4573 [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1c02d50 Change-Id: I6871a7765e3e04122d8d546f43d36bb8415383fc
1 parent 9689083 commit 5d7d891

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ function create_disk {
739739

740740
# Mount the disk with mount options to make it as efficient as possible
741741
if ! egrep -q ${storage_data_dir} /proc/mounts; then
742-
sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 \
742+
sudo mount -t xfs -o loop,noatime,nodiratime,logbufs=8 \
743743
${disk_image} ${storage_data_dir}
744744
fi
745745
}

lib/swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ function create_swift_disk {
607607
# Mount the disk with mount options to make it as efficient as possible
608608
mkdir -p ${SWIFT_DATA_DIR}/drives/sdb1
609609
if ! egrep -q ${SWIFT_DATA_DIR}/drives/sdb1 /proc/mounts; then
610-
sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 \
610+
sudo mount -t xfs -o loop,noatime,nodiratime,logbufs=8 \
611611
${SWIFT_DISK_IMAGE} ${SWIFT_DATA_DIR}/drives/sdb1
612612
fi
613613

0 commit comments

Comments
 (0)