Release 4.8 block/partitions/check.h
#include <linux/pagemap.h>
#include <linux/blkdev.h>
#include <linux/genhd.h>
/*
* add_gd_partition adds a partitions details to the devices partition
* description.
*/
struct parsed_partitions {
struct block_device *bdev;
char name[BDEVNAME_SIZE];
struct {
sector_t from;
sector_t size;
int flags;
bool has_info;
struct partition_meta_info info;
}
*parts;
int next;
int limit;
bool access_beyond_eod;
char *pp_buf;
};
void free_partitions(struct parsed_partitions *state);
struct parsed_partitions *
check_partition(struct gendisk *, struct block_device *);
static inline void *read_part_sector(struct parsed_partitions *state,
sector_t n, Sector *p)
{
if (n >= get_capacity(state->bdev->bd_disk)) {
state->access_beyond_eod = true;
return NULL;
}
return read_dev_sector(state->bdev, n, p);
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
tejun heo | tejun heo | 56 | 100.00% | 2 | 100.00% |
| Total | 56 | 100.00% | 2 | 100.00% |
static inline void
put_partition(struct parsed_partitions *p, int n, sector_t from, sector_t size)
{
if (n < p->limit) {
char tmp[1 + BDEVNAME_SIZE + 10 + 1];
p->parts[n].from = from;
p->parts[n].size = size;
snprintf(tmp, sizeof(tmp), " %s%d", p->name, n);
strlcat(p->pp_buf, tmp, PAGE_SIZE);
}
}
Contributors
| Person | Tokens | Prop | Commits | CommitProp |
al viro | al viro | 53 | 56.38% | 1 | 25.00% |
alexey dobriyan | alexey dobriyan | 31 | 32.98% | 1 | 25.00% |
andries brouwer | andries brouwer | 8 | 8.51% | 1 | 25.00% |
andrew morton | andrew morton | 2 | 2.13% | 1 | 25.00% |
| Total | 94 | 100.00% | 4 | 100.00% |
extern int warn_no_part;
Overall Contributors
| Person | Tokens | Prop | Commits | CommitProp |
al viro | al viro | 92 | 38.66% | 2 | 13.33% |
tejun heo | tejun heo | 64 | 26.89% | 2 | 13.33% |
alexey dobriyan | alexey dobriyan | 35 | 14.71% | 1 | 6.67% |
ming lei | ming lei | 10 | 4.20% | 1 | 6.67% |
will drewry | will drewry | 10 | 4.20% | 1 | 6.67% |
andries brouwer | andries brouwer | 9 | 3.78% | 1 | 6.67% |
linus torvalds | linus torvalds | 7 | 2.94% | 3 | 20.00% |
pre-git | pre-git | 6 | 2.52% | 2 | 13.33% |
andrew morton | andrew morton | 4 | 1.68% | 1 | 6.67% |
christoph hellwig | christoph hellwig | 1 | 0.42% | 1 | 6.67% |
| Total | 238 | 100.00% | 15 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.