From 36e0696c135829d7c2d932c7dae3e592bb7caa67 Mon Sep 17 00:00:00 2001 From: yoe Date: Sat, 1 May 2004 07:48:23 +0000 Subject: [PATCH] r57: Fix multi-file option, and fix its documentation --- nbd-server.1.sgml | 9 +++++++++ nbd-server.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/nbd-server.1.sgml b/nbd-server.1.sgml index 2345e31..0f0678a 100644 --- a/nbd-server.1.sgml +++ b/nbd-server.1.sgml @@ -145,6 +145,15 @@ manpage.1: manpage.sgml Linux 2.2 and below), you can use this option to store the data in multiple files and export a larger filesystem, if needed. + + To use this option, you must make sure that the exported + name contains the string "%d", which will be exchanged by + the number of the exported file, starting by one; that the + individual files are 1G in size; and that the total size + of all files together is specified. + + Allowing more flexibility for this option is planned for + future versions. diff --git a/nbd-server.c b/nbd-server.c index 6891a1a..1cc19a5 100644 --- a/nbd-server.c +++ b/nbd-server.c @@ -739,7 +739,7 @@ int splitexport(void) { for (i=0; i