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
6fd7957e
Commit
6fd7957e
authored
Feb 17, 2013
by
Pat Wood
Browse files
sends the nand driver a BLKRRPART via ioctl; depends on kernel mods
that allow on-the-fly repartitioning of the nand
parent
c058922c
Changes
1
Hide whitespace changes
Inline
Side-by-side
nand-part.c
View file @
6fd7957e
...
...
@@ -49,6 +49,8 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
#include "nand-part.h"
#define MAX_NAME 16
...
...
@@ -315,6 +317,7 @@ int main (int argc, char **argv)
if
(
writembrs
(
fd
,
names
,
lens
,
user_types
,
argc
))
{
printf
(
"
\n
verifying new partition tables:
\n
"
);
checkmbrs
(
fd
);
printf
(
"rereading partition table... returned %d
\n
"
,
ioctl
(
fd
,
BLKRRPART
,
0
));
}
}
close
(
fd
);
...
...
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