summaryrefslogtreecommitdiffstats
path: root/kernel/fs/nfs/nfs.h
blob: 43679df56cd0536c5ea9186a2c800867d58ed643 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2012 Netapp, Inc. All rights reserved.
 *
 * Function and structures exported by the NFS module
 * for use by NFS version-specific modules.
 */
#ifndef __LINUX_INTERNAL_NFS_H
#define __LINUX_INTERNAL_NFS_H

#include <linux/fs.h>
#include <linux/sunrpc/sched.h>
#include <linux/nfs_xdr.h>

struct nfs_subversion {
	struct module *owner;	/* THIS_MODULE pointer */
	struct file_system_type *nfs_fs;	/* NFS filesystem type */
	const struct rpc_version *rpc_vers;	/* NFS version information */
	const struct nfs_rpc_ops *rpc_ops;	/* NFS operations */
	const struct super_operations *sops;	/* NFS Super operations */
	const struct xattr_handler **xattr;	/* NFS xattr handlers */
	struct list_head list;		/* List of NFS versions */
};

struct nfs_subversion *get_nfs_version(unsigned int);
void put_nfs_version(struct nfs_subversion *);
void register_nfs_version(struct nfs_subversion *);
void unregister_nfs_version(struct nfs_subversion *);

#endif /* __LINUX_INTERNAL_NFS_H */
ered and become available for installing \ OpenStack on them" *************** +*** 239,244 **** +--- 239,250 ---- + # /etc/fuel_openstack_version is provided by 'fuel-openstack-metadata' package + OPENSTACK_VERSION=$(cat /etc/fuel_openstack_version) + ++ # FIXME(armband): This part might be moved to an earlier stage later ++ # /etc/fuel_openstack_arch is constructed based on local mirror metadata ++ grep -oP "^Architectures: \K.*$" \ ++ ${wwwdir}/${OPENSTACK_VERSION}/ubuntu/x86_64/dists/mos${FUEL_RELEASE}/Release > \ ++ /etc/fuel_openstack_arch ++ + # We do not ship debian-installer kernel and initrd on ISO. + # But we still need to be able to create ubuntu cobbler distro + # which requires kernel and initrd to be available. So, we +*************** *** 339,346 **** set +x echo "Done!" diff --git a/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh b/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh new file mode 100755 index 0000000..d33d1d1 --- /dev/null +++ b/build/f_isoroot/f_bootstrap/post-scripts/80_prepare_cross_builds.sh @@ -0,0 +1,32 @@ +#/bin/sh +############################################################################## +# Copyright (c) 2016 Enea AB and others. +# Alexandru.Avadanii@enea.com +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +echo "Preparing for cross-building bootstrap/target images" + +# Fmt handlers are set up by qemu-user-static (after systemd-binfmt +# prerequisites are checked during first boot of Fuel Master node). + +# Cross-building support provides dpkg, as a fuel-agent dependency +if which dpkg > /dev/null 2>&1; then + # /etc/fuel_openstack_arch is created by bootstrap_admin_node.sh + FOREIGN_ARCH_CNT=$(sed -e "s/$(dpkg --print-architecture)//" \ + /etc/fuel_openstack_arch | wc -w) + if [ ${FOREIGN_ARCH_CNT} -gt 0 ]; then + # If no fmt handlers are configured, the service is not started, + # so request it explicitly (only necessary for the first boot). + systemctl start systemd-binfmt + if [ $? -ne 0 ]; then + echo "Error starting systemd-binfmt!" + exit 1 + fi + fi +fi + +echo "Done preparing cross-building"