| 610 | } |
| 611 | |
| 612 | static int is_inode_valid(const unsigned long int new_inode, const unsigned long int inode_known[MAX_DIR_NBR], const unsigned int dir_nbr) |
| 613 | { |
| 614 | unsigned int i; |
| 615 | if(new_inode<2) |
| 616 | return 0; |
| 617 | for(i=0; i<dir_nbr; i++) |
| 618 | if(new_inode == inode_known[i]) /* Avoid loop */ |
| 619 | return 0; |
| 620 | return 1; |
| 621 | } |
| 622 | |
| 623 | static int can_copy_dir(const file_info_t *current_file, const unsigned long int inode_known[MAX_DIR_NBR], const unsigned int dir_nbr) |
| 624 | { |
no outgoing calls
no test coverage detected