Print this page
6198 Let's EOL cachefs

*** 20,29 **** --- 20,30 ---- */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright 2015 Nexenta Systems, Inc. All rights reserved. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */
*** 343,356 **** /* open the remote file system type database file */ if ((fp = fopen(REMOTE_FS_DBFILE, "r")) == NULL) { /* no remote type database: use predefined remote types */ remoteFstypes = (char **)realloc(remoteFstypes, ! sizeof (char *) * (numRemoteFstypes+3)); remoteFstypes[numRemoteFstypes++] = "nfs"; /* +1 */ remoteFstypes[numRemoteFstypes++] = "autofs"; /* +2 */ - remoteFstypes[numRemoteFstypes++] = "cachefs"; /* +3 */ return; } /* * Read the remote file system type database; from fstypes(4): --- 344,356 ---- /* open the remote file system type database file */ if ((fp = fopen(REMOTE_FS_DBFILE, "r")) == NULL) { /* no remote type database: use predefined remote types */ remoteFstypes = (char **)realloc(remoteFstypes, ! sizeof (char *) * (numRemoteFstypes+2)); remoteFstypes[numRemoteFstypes++] = "nfs"; /* +1 */ remoteFstypes[numRemoteFstypes++] = "autofs"; /* +2 */ return; } /* * Read the remote file system type database; from fstypes(4):
*** 363,373 **** * * Lines will look at lot like this: * * nfs NFS Utilities * autofs AUTOFS Utilities - * cachefs CACHEFS Utilities */ while (fgets(line_buf, sizeof (line_buf), fp) != NULL) { char buf[LINE_MAX]; static char format[128] = {'\0'}; --- 363,372 ----