mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
o typos
This commit is contained in:
parent
f9e8171a44
commit
1655d99716
@ -49,7 +49,7 @@ static int is_identifier(const char *str, int len)
|
|||||||
{
|
{
|
||||||
if (len > DM_NAME_LEN - 1)
|
if (len > DM_NAME_LEN - 1)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
while(len--) {
|
while(len--) {
|
||||||
if (!isalnum(*str) && *str != '_')
|
if (!isalnum(*str) && *str != '_')
|
||||||
return 0;
|
return 0;
|
||||||
@ -119,7 +119,7 @@ static struct file *open_error_file(struct file *table)
|
|||||||
/* Create error file */
|
/* Create error file */
|
||||||
strcat(name, ".err");
|
strcat(name, ".err");
|
||||||
f = filp_open(name, O_WRONLY | O_TRUNC | O_CREAT, S_IRUGO);
|
f = filp_open(name, O_WRONLY | O_TRUNC | O_CREAT, S_IRUGO);
|
||||||
|
|
||||||
kfree(buffer);
|
kfree(buffer);
|
||||||
|
|
||||||
if (f)
|
if (f)
|
||||||
@ -477,7 +477,6 @@ static struct address_space_operations dm_aops = {
|
|||||||
static struct file_operations dm_file_operations = {
|
static struct file_operations dm_file_operations = {
|
||||||
read: generic_file_read,
|
read: generic_file_read,
|
||||||
write: generic_file_write,
|
write: generic_file_write,
|
||||||
mmap: generic_file_mmap,
|
|
||||||
fsync: dmfs_sync_file,
|
fsync: dmfs_sync_file,
|
||||||
release: dmfs_release,
|
release: dmfs_release,
|
||||||
};
|
};
|
||||||
|
@ -172,7 +172,7 @@ static inline int check_space(struct dm_table *t)
|
|||||||
/*
|
/*
|
||||||
* convert a device path to a kdev_t.
|
* convert a device path to a kdev_t.
|
||||||
*/
|
*/
|
||||||
int lookup_device(const char *path, kdev_t dev)
|
int lookup_device(const char *path, kdev_t *dev)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
struct nameidata nd;
|
struct nameidata nd;
|
||||||
@ -195,7 +195,7 @@ int lookup_device(const char *path, kdev_t dev)
|
|||||||
goto bad;
|
goto bad;
|
||||||
}
|
}
|
||||||
|
|
||||||
dev = inode->i_bdev->bd_dev;
|
*dev = inode->i_bdev->bd_dev;
|
||||||
|
|
||||||
bad:
|
bad:
|
||||||
path_release(&nd);
|
path_release(&nd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user