Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
5f258215
Commit
5f258215
authored
Mar 02, 2013
by
Pat Wood
Browse files
Merge branch 'master' of
git://github.com/linux-sunxi/sunxi-tools
Conflicts: nand-part.c
parents
d223f7de
033706af
Changes
1
Hide whitespace changes
Inline
Side-by-side
nand-part.c
View file @
5f258215
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment