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

« back to all changes in this revision

Viewing changes to cmds-inspect.c

  • Committer: Package Import Robot
  • Author(s): Dimitri John Ledkov
  • Date: 2014-09-21 02:05:14 UTC
  • mfrom: (1.2.13) (6.1.38 sid)
  • Revision ID: package-import@ubuntu.com-20140921020514-kx4b23aw4grvevrc
Tags: 3.16-1
* New upstream release.
* Add asciidoc & xmlto build dependencies.
* Disable test-suites for now, should be run as autopkgtests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        memset(fspath, 0, sizeof(*fspath));
50
50
        ipa.inum = inum;
51
51
        ipa.size = 4096;
52
 
        ipa.fspath = (uintptr_t)fspath;
 
52
        ipa.fspath = ptr_to_u64(fspath);
53
53
 
54
54
        ret = ioctl(fd, BTRFS_IOC_INO_PATHS, &ipa);
55
55
        if (ret) {
185
185
        memset(inodes, 0, sizeof(*inodes));
186
186
        loi.logical = arg_strtou64(argv[optind]);
187
187
        loi.size = size;
188
 
        loi.inodes = (uintptr_t)inodes;
 
188
        loi.inodes = ptr_to_u64(inodes);
189
189
 
190
190
        fd = open_file_or_dir(argv[optind+1], &dirstream);
191
191
        if (fd < 0) {