OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f81230
)
Rename write_entry() to commit_entry().
author
relan
<relan@users.noreply.github.com>
Fri, 23 Dec 2016 17:34:59 +0000
(20:34 +0300)
committer
relan
<relan@users.noreply.github.com>
Mon, 16 Jan 2017 06:29:08 +0000
(09:29 +0300)
This function doesn't just write an entry, it also constructs a new node
and adds it into the tree.
libexfat/node.c
patch
|
blob
|
history
diff --git
a/libexfat/node.c
b/libexfat/node.c
index
52123fd
..
5b623be
100644
(file)
--- a/
libexfat/node.c
+++ b/
libexfat/node.c
@@
-926,7
+926,7
@@
static int find_slot(struct exfat* ef, struct exfat_node* dir,
return 0;
}
-static int
write
_entry(struct exfat* ef, struct exfat_node* dir,
+static int
commit
_entry(struct exfat* ef, struct exfat_node* dir,
const le16_t* name, cluster_t cluster, off_t offset, uint16_t attrib)
{
struct exfat_node* node;
@@
-1026,7
+1026,7
@@
static int create(struct exfat* ef, const char* path, uint16_t attrib)
exfat_put_node(ef, dir);
return rc;
}
- rc =
write
_entry(ef, dir, name, cluster, offset, attrib);
+ rc =
commit
_entry(ef, dir, name, cluster, offset, attrib);
if (rc != 0)
{
exfat_put_node(ef, dir);