From patchwork Wed Nov 24 12:19:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suresh Jayaraman X-Patchwork-Id: 352741 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAOCJFTe005205 for ; Wed, 24 Nov 2010 12:19:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754234Ab0KXMT3 (ORCPT ); Wed, 24 Nov 2010 07:19:29 -0500 Received: from victor.provo.novell.com ([137.65.250.26]:37016 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754140Ab0KXMT2 (ORCPT ); Wed, 24 Nov 2010 07:19:28 -0500 Received: from localhost (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP; Wed, 24 Nov 2010 05:19:14 -0700 From: Suresh Jayaraman To: Steve French Cc: linux-cifs@vger.kernel.org Subject: [PATCH 1/3] cifs: allow fsc mount option only if CONFIG_CIFS_FSCACHE is set Date: Wed, 24 Nov 2010 17:49:05 +0530 Message-Id: <1290601147-11392-2-git-send-email-sjayaraman@suse.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1290601147-11392-1-git-send-email-sjayaraman@suse.de> References: <1290601147-11392-1-git-send-email-sjayaraman@suse.de> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 24 Nov 2010 12:19:29 +0000 (UTC) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 251a17c..32fa4d9 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1352,6 +1352,11 @@ cifs_parse_mount_options(char *options, const char *devname, "supported. Instead set " "/proc/fs/cifs/LookupCacheEnabled to 0\n"); } else if (strnicmp(data, "fsc", 3) == 0) { +#ifndef CONFIG_CIFS_FSCACHE + cERROR(1, "FS-Cache support needs CONFIG_CIFS_FSCACHE" + "kernel config option set"); + return 1; +#endif vol->fsc = true; } else if (strnicmp(data, "mfsymlinks", 10) == 0) { vol->mfsymlinks = true;