From 416cf7e860482e0ef57ec8a82992dda43d9889b6 Mon Sep 17 00:00:00 2001
From: Andrew Gaul <gaul@gaul.org>
Date: Mon, 22 Feb 2021 20:12:29 +0100
Subject: [PATCH] updatedb: exclude s3fs filesystems by default

s3fs is a popular way to access S3-compatible object storage.
Its users have reported many bugs being surprised that updatedb crawls
these remote storage systems which causes poor performance:
https://github.com/s3fs-fuse/s3fs-fuse/issues?q=is%3Aissue+updatedb

* locate/updatedb.sh (PRUNEFS): Add 'fuse.s3fs'.

Copyright-paperwork-exempt: Yes
---
 NEWS               | 5 +++++
 locate/updatedb.sh | 1 +
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 1ee7f329..86cab905 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,11 @@ GNU findutils NEWS - User visible changes.      -*- outline -*- (allout)
 
 * Noteworthy changes in release ?.? (????-??-??) [?]
 
+** Changes in locate / updatedb
+
+  update now skips (fuse-mounted) s3fs filesystems by default,
+  i.e., unless PRUNEFS is set.
+
 ** Documentation Changes
 
   The find.1 man page and the Texinfo manual now show environment variables
diff --git a/locate/updatedb.sh b/locate/updatedb.sh
index 7d42e4bd..242f1865 100644
--- a/locate/updatedb.sh
+++ b/locate/updatedb.sh
@@ -263,6 +263,7 @@ coda
 devfs
 devpts
 ftpfs
+fuse.s3fs
 iso9660
 mfs
 ncpfs
-- 
2.30.1

