Commit 5f258215 authored by Pat Wood's avatar Pat Wood
Browse files

Merge branch 'master' of git://github.com/linux-sunxi/sunxi-tools

Conflicts:
	nand-part.c
parents d223f7de 033706af
......@@ -50,7 +50,7 @@
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
#include <sys/mount.h> /* BLKRRPART */
#include "nand-part.h"
#define MAX_NAME 16
......@@ -254,6 +254,10 @@ int writembrs(int fd, char names[][MAX_NAME], __u32 *lens, unsigned int *user_ty
lseek(fd,MBR_START_ADDRESS + MBR_SIZE*i,SEEK_SET);
write(fd,mbr,MBR_SIZE);
}
if (ioctl(fd, BLKRRPART, NULL))
perror("Failed rereading partition table");
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment