Displaying 2 results from an estimated 2 matches for "parent_dir_entry".
2011 Jun 26
0
[PATCH] mkfs.btrfs: Fix compilation errors with gcc 4.6
...ret = btrfs_lookup_inode(trans, root, &path, &root_dir_key, 1);
if (ret) {
fprintf(stderr, "root dir lookup error\n");
- goto fail;
+ return -1;
}
leaf = path.nodes[0];
@@ -913,7 +913,7 @@ static int traverse_directory(struct btrfs_trans_handle *trans,
if (chdir(parent_dir_entry->path)) {
fprintf(stderr, "chdir error for %s\n",
parent_dir_name);
- goto fail;
+ goto fail_no_files;
}
count = scandir(parent_dir_entry->path, &files,
@@ -996,6 +996,7 @@ static int traverse_directory(struct btrfs_trans_handle *trans,
return 0;
fail:...
2011 Jun 02
0
btrfs-progs-unstable tmp branch build error
When building from tmp branch I got this error:
mkfs.c: In function ‘main’:
mkfs.c:730:6: error: ‘ret’ may be used uninitialized in this function
mkfs.c:841:43: error: ‘parent_dir_entry’ may be used uninitialized in
this function
make: *** [mkfs.o] Error 1
"git blame" shows the last commit for both lines was
commit e3736c698e8b490bea1375576b718a2de6e89603
Author: Donggeun Kim <dg77.kim@samsung.com>
Date: Thu Jul 8 09:17:59 2010 +0000
btrfs-progs: Add new f...