summaryrefslogtreecommitdiffstats
path: root/lib/libstand/gzipfs.c
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-03-17 12:18:05 +0000
committersobomax <sobomax@FreeBSD.org>2002-03-17 12:18:05 +0000
commit9d703dcfedc6263b12ba725785b027e958c540f3 (patch)
treedd2d29323555872217afb04ebb572acebac59fcd /lib/libstand/gzipfs.c
parent006a375bc447bfc5b3db07294bf35dbe748b38a9 (diff)
downloadFreeBSD-src-9d703dcfedc6263b12ba725785b027e958c540f3.zip
FreeBSD-src-9d703dcfedc6263b12ba725785b027e958c540f3.tar.gz
Add splitfs vfs layer into libstand, which allows loading big kernels and
modules split across several physical medias. Following is how it works: The splitfs code, when asked to open "foo" looks for a file "foo.split" which is a text file containing a list of filenames and media names, e.g. foo.aa "Kernel floppy 1" foo.ab "Kernel floppy 2" foo.ac "Kernel and modules floppy" For each file segment, the process is: - try to open the file - prompt "Insert the disk labelled <whatever> and press any key..." - try to open the file - return error if file could not be located RE team is free to use this feature in the upcoming 5.0-DP1. Reviewed by: msmith, dcs
Diffstat (limited to 'lib/libstand/gzipfs.c')
-rw-r--r--lib/libstand/gzipfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/gzipfs.c b/lib/libstand/gzipfs.c
index 59034ff..00c8f8f 100644
--- a/lib/libstand/gzipfs.c
+++ b/lib/libstand/gzipfs.c
@@ -175,7 +175,7 @@ zf_open(const char *fname, struct open_file *f)
/* If the name already ends in .gz or .bz2, ignore it */
if ((cp = strrchr(fname, '.')) && (!strcmp(cp, ".gz")
- || !strcmp(cp, ".bz2")))
+ || !strcmp(cp, ".bz2") || !strcmp(cp, ".split")))
return(ENOENT);
/* Construct new name */
OpenPOWER on IntegriCloud