forked from Ivasoft/openwrt
kernel/3.10: move squashfs check from rootfs split code into a separate file
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38109
This commit is contained in:
31
target/linux/generic/files/drivers/mtd/mtdsplit.h
Normal file
31
target/linux/generic/files/drivers/mtd/mtdsplit.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (C) 2009-2013 Felix Fietkau <nbd@openwrt.org>
|
||||
* Copyright (C) 2009-2013 Gabor Juhos <juhosg@openwrt.org>
|
||||
* Copyright (C) 2012 Jonas Gorski <jogo@openwrt.org>
|
||||
* Copyright (C) 2013 Hauke Mehrtens <hauke@hauke-m.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 as published
|
||||
* by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _MTDSPLIT_H
|
||||
#define _MTDSPLIT_H
|
||||
|
||||
#define ROOTFS_SPLIT_NAME "rootfs_data"
|
||||
|
||||
#ifdef CONFIG_MTD_SPLIT
|
||||
int mtd_get_squashfs_len(struct mtd_info *master,
|
||||
size_t offset,
|
||||
size_t *squashfs_len);
|
||||
#else
|
||||
static inline int mtd_get_squashfs_len(struct mtd_info *master,
|
||||
size_t offset,
|
||||
size_t *squashfs_len)
|
||||
{
|
||||
return -ENODEV;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _MTDSPLIT_H */
|
||||
Reference in New Issue
Block a user