1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-25 18:50:51 +03:00

o Fix typos from yesterday

This commit is contained in:
steve 2001-10-25 10:37:05 +00:00
parent fb5a7db66d
commit 045f2e10ba
2 changed files with 4 additions and 3 deletions

View File

@ -108,7 +108,6 @@ static ssize_t dmfs_error_read(struct file *file, char *buf, size_t size, loff_t
{
struct inode *inode = file->f_dentry->d_parent->d_inode;
struct dmfs_i *dmi = DMFS_I(inode);
struct dm_table *t = dmi->table;
int copied = 0;
loff_t offset = *pos;

View File

@ -71,7 +71,7 @@ static char *err_table[] = {
rv = ttype->ctr(t, start, size, str, &context);
msg = context;
if (rv == 0) {
printk("dmfs_parse: %lu %lu %s %s\n", start, size,
printk("dmfs_parse: %u %u %s %s\n", start, size,
ttype->name,
ttype->print ? ttype->print(context) : "-");
msg = "Error adding target to table";
@ -121,6 +121,7 @@ static int dmfs_line_is_not_comment(char *str)
struct dmfs_desc {
struct dm_table *table;
struct inode *inode;
char *tmp;
loff_t tmpl;
unsigned long lnum;
@ -151,7 +152,7 @@ static int dmfs_read_actor(read_descriptor_t *desc, struct page *page, unsigned
if (dmfs_line_is_not_comment(d->tmp)) {
msg = dmfs_parse_line(d->table, d->tmp);
if (msg) {
dmfs_add_error(t, d->lnum, msg);
dmfs_add_error(d->inode, d->lnum, msg);
}
}
d->lnum++;
@ -191,6 +192,7 @@ static struct dm_table *dmfs_parse(struct inode *inode, struct file *filp)
desc.count = inode->i_size;
desc.buf = (char *)&d;
d.table = t;
d.inode = inode;
d.tmp = (char *)page;
d.tmpl = 0;
d.lnum = 1;