Rev 3572 | Rev 3574 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3572 | Rev 3573 | ||
---|---|---|---|
Line 681... | Line 681... | ||
681 | block_put(b); |
681 | block_put(b); |
682 | if (pos + bytes > nodep->size) { |
682 | if (pos + bytes > nodep->size) { |
683 | nodep->size = pos + bytes; |
683 | nodep->size = pos + bytes; |
684 | nodep->dirty = true; /* need to sync node */ |
684 | nodep->dirty = true; /* need to sync node */ |
685 | } |
685 | } |
- | 686 | ipc_answer_2(rid, EOK, bytes, nodep->size); |
|
686 | fat_node_put(nodep); |
687 | fat_node_put(nodep); |
687 | ipc_answer_1(rid, EOK, bytes); |
- | |
688 | return; |
688 | return; |
689 | } else { |
689 | } else { |
690 | /* |
690 | /* |
691 | * This is the more difficult case. We must allocate new |
691 | * This is the more difficult case. We must allocate new |
692 | * clusters for the node and zero them out. |
692 | * clusters for the node and zero them out. |
Line 717... | Line 717... | ||
717 | * node's cluster chain. |
717 | * node's cluster chain. |
718 | */ |
718 | */ |
719 | fat_append_clusters(bs, nodep, mcl); |
719 | fat_append_clusters(bs, nodep, mcl); |
720 | nodep->size = pos + bytes; |
720 | nodep->size = pos + bytes; |
721 | nodep->dirty = true; /* need to sync node */ |
721 | nodep->dirty = true; /* need to sync node */ |
- | 722 | ipc_answer_2(rid, EOK, bytes, nodep->size); |
|
722 | fat_node_put(nodep); |
723 | fat_node_put(nodep); |
723 | ipc_answer_1(rid, EOK, bytes); |
- | |
724 | return; |
724 | return; |
725 | } |
725 | } |
726 | } |
726 | } |
727 | 727 | ||
728 | void fat_truncate(ipc_callid_t rid, ipc_call_t *request) |
728 | void fat_truncate(ipc_callid_t rid, ipc_call_t *request) |