Permit culling to be disabled on the command line

Permit culling to be disabled on the command line by passing a -N flag.

Signed-off-by: David Howells <dhowells@redhat.com>
diff --git a/README b/README
index 638ad4d..8446a3b 100644
--- a/README
+++ b/README
@@ -130,7 +130,7 @@
 
 The daemon is run as follows:
 
-	/sbin/cachefilesd [-d]* [-s] [-n] [-f <configfile>]
+	/sbin/cachefilesd [-d]* [-s] [-n] [-N] [-f <configfile>]
 
 The flags are:
 
@@ -147,6 +147,10 @@
 
 	Don't daemonise and go into background.
 
+ (*) -N
+
+	Disable culling and scanning to fill the cull table.
+
  (*) -f <configfile>
 
 	Use an alternative configuration file rather than the default one.
diff --git a/cachefilesd.8 b/cachefilesd.8
index e9ad3f2..3db9f9d 100644
--- a/cachefilesd.8
+++ b/cachefilesd.8
@@ -11,7 +11,7 @@
 .SH NAME
 cachefilesd \- CacheFiles userspace management daemon
 .SH SYNOPSIS
-.B "cachefilesd [-d]* [-s] [-n] [-f <configfile>]"
+.B "cachefilesd [-d]* [-s] [-n] [-N] [-f <configfile>]"
 .SH DESCRIPTION
 The \fBcachefilesd\fP daemon manages the cache data store that is used by
 network filesystems such a AFS and NFS to cache data locally on disk.
@@ -30,6 +30,9 @@
 .B -n
 Don't daemonise.
 .TP
+.B -N
+Disable culling and scanning to fill the cull table.
+.TP
 .BI "-p <pidfile>"
 Use an alternate PID file to /var/run/cachefilesd.pid.
 .TP
diff --git a/cachefilesd.c b/cachefilesd.c
index 7212285..7d86821 100644
--- a/cachefilesd.c
+++ b/cachefilesd.c
@@ -289,7 +289,7 @@
 		version();
 
 	/* parse the arguments */
-	while (opt = getopt(argc, argv, "dsnf:p:v"),
+	while (opt = getopt(argc, argv, "dsnNf:p:v"),
 	       opt != EOF
 	       ) {
 		switch (opt) {
@@ -308,6 +308,11 @@
 			nodaemon = true;
 			break;
 
+		case 'N':
+			/* disable culling */
+			nocull = true;
+			break;
+
 		case 'f':
 			/* use a specific config file */
 			configfile = optarg;