~ubuntu-branches/debian/sid/btrfs-tools/sid

« back to all changes in this revision

Viewing changes to btrfs-find-root.c

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-04-19 12:12:11 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20140419121211-0jeuu83zmf9nowmu
Tags: 3.14.1-1
* New upstream release.
* Switch to git-dpm.
* Rebase and cleanup patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
 
113
113
        eb = fs_info->chunk_root->node;
114
114
        read_extent_buffer(eb, fs_info->chunk_tree_uuid,
115
 
                           (unsigned long)btrfs_header_chunk_tree_uuid(eb),
116
 
                           BTRFS_UUID_SIZE);
 
115
                           btrfs_header_chunk_tree_uuid(eb), BTRFS_UUID_SIZE);
117
116
 
118
117
        return fs_info->chunk_root;
119
118
out_chunk:
290
289
                switch(opt) {
291
290
                        errno = 0;
292
291
                        case 'o':
293
 
                                search_objectid = (u64)strtoll(optarg, NULL,
294
 
                                                               10);
295
 
                                if (errno) {
296
 
                                        fprintf(stderr, "Error parsing "
297
 
                                                "objectid\n");
298
 
                                        exit(1);
299
 
                                }
 
292
                                search_objectid = arg_strtou64(optarg);
300
293
                                break;
301
294
                        case 'g':
302
 
                                search_generation = (u64)strtoll(optarg, NULL,
303
 
                                                               10);
304
 
                                if (errno) {
305
 
                                        fprintf(stderr, "Error parsing "
306
 
                                                "generation\n");
307
 
                                        exit(1);
308
 
                                }
 
295
                                search_generation = arg_strtou64(optarg);
309
296
                                break;
310
297
                        case 'l':
311
 
                                search_level = strtol(optarg, NULL, 10);
312
 
                                if (errno) {
313
 
                                        fprintf(stderr, "Error parsing "
314
 
                                                "level\n");
315
 
                                        exit(1);
316
 
                                }
 
298
                                search_level = arg_strtou64(optarg);
317
299
                                break;
318
300
                        default:
319
301
                                usage();