fs: Support 64bit in register_[block|mtd]partition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
71269811ca
commit
4f8c3ab901
|
@ -44,8 +44,8 @@ struct part_struct_s
|
|||
{
|
||||
FAR struct inode *parent;
|
||||
size_t sectorsize;
|
||||
size_t firstsector;
|
||||
size_t nsectors;
|
||||
off_t firstsector;
|
||||
off_t nsectors;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -318,7 +318,7 @@ static int part_unlink(FAR struct inode *inode)
|
|||
|
||||
int register_blockpartition(FAR const char *partition,
|
||||
mode_t mode, FAR const char *parent,
|
||||
size_t firstsector, size_t nsectors)
|
||||
off_t firstsector, off_t nsectors)
|
||||
{
|
||||
FAR struct part_struct_s *dev;
|
||||
struct geometry geo;
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
int register_mtdpartition(FAR const char *partition,
|
||||
mode_t mode, FAR const char *parent,
|
||||
off_t firstblock, size_t nblocks)
|
||||
off_t firstblock, off_t nblocks)
|
||||
{
|
||||
FAR struct mtd_dev_s *part;
|
||||
FAR struct inode *mtd;
|
||||
|
|
|
@ -597,7 +597,7 @@ int register_blockdriver(FAR const char *path,
|
|||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||
int register_blockpartition(FAR const char *partition,
|
||||
mode_t mode, FAR const char *parent,
|
||||
size_t firstsector, size_t nsectors);
|
||||
off_t firstsector, off_t nsectors);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -674,7 +674,7 @@ int register_mtddriver(FAR const char *path, FAR struct mtd_dev_s *mtd,
|
|||
#ifdef CONFIG_MTD
|
||||
int register_mtdpartition(FAR const char *partition,
|
||||
mode_t mode, FAR const char *parent,
|
||||
off_t firstblock, size_t nblocks);
|
||||
off_t firstblock, off_t nblocks);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue