search for: malloc_error

Displaying 20 results from an estimated 24 matches for "malloc_error".

2016 Jul 14
0
[PATCH v2 2/7] New API: setfiles - SELinux relabel parts of the filesystem.
...int force) +{ + const char *argv[MAX_ARGS]; + CLEANUP_FREE char *s_dev = NULL, *s_proc = NULL, *s_selinux = NULL, + *s_sys = NULL, *s_specfile = NULL, *s_path = NULL; + CLEANUP_FREE char *err = NULL; + size_t i = 0; + + s_dev = sysroot_path ("/dev"); + if (!s_dev) { + malloc_error: + reply_with_perror ("malloc"); + return -1; + } + s_proc = sysroot_path ("/proc"); if (!s_proc) goto malloc_error; + s_selinux = sysroot_path ("/selinux"); if (!s_selinux) goto malloc_error; + s_sys = sysroot_path ("/sys"); if (!s_sy...
2015 Feb 11
1
Re: [PATCH v3 2/2] New API: btfs_scrub_status
...> + * tree_bytes_scrubbed: 491896832 > + * read_errors: 0 > + * csum_errors: 0 > + * verify_errors: 0 > + * no_csum: 17760 > + * csum_discards: 197622 > + * super_errors: 0 > + * malloc_errors: 0 > + * uncorrectable_errors: 0 > + * unverified_errors: 0 > + * corrected_errors: 0 > + * last_physical: 10301341696 > + * > + * or: > + * > + * scrub status for 346121d1-1847-40f8-9b7b-2bf3d539c68f > + *...
2014 Feb 20
2
[PATCH] NTFS: fragmented $MFT file was not handled
...rd *mrec = NULL, *lmrec = NULL; + uint64_t start_blk = 0; + struct ntfs_attr_record *attr = NULL; + uint8_t *stream = NULL; + uint32_t attr_offset = 0; + uint8_t *attr_len = NULL; + struct mapping_chunk chunk; - buf = (uint8_t *)malloc(mft_record_size); - if (!buf) - malloc_error("uint8_t *"); + int err = 0; - /* determine MFT record's LCN and block number */ - lcn = NTFS_SB(fs)->mft_lcn + (file << mft_record_shift >> clust_byte_shift); - cur_blk = (lcn << clust_byte_shift >> BLOCK_SHIFT(fs)) - mft_blk; - offset = (f...
2016 Jul 14
10
[PATCH v2 0/7] Fix SELinux
v1 -> v2: - Add simple test of the setfiles API. - Use SELinux_relabel module in virt-v2v (instead of touch /.autorelabel). - Small fixes. Rich.
2011 Jul 18
5
[PATCH v3 0/5] btrfs-progs: scrub interface
This is the next patch series for scrub userland tools. Change log v1->v2: - commands now reachable as "btrfs scrub ..." instead of "btrfs filesystem scrub ..." - ability to scrub a single device instead of a whole file system - superfluous command line options removed - resume is now a separate command ("scrub resume") instead of "scrub start -r" -
2011 Mar 08
6
[PATCH v1 0/6] btrfs: scrub
This series adds an initial implementation for scrub. It works quite straightforward. The usermode issues an ioctl for each device in the fs. For each device, it enumerates the allocated device chunks. For each chunk, the contained extents are enumerated and the data checksums fetched. The extents are read sequentially and the checksums verified. If an error occurs (checksum or EIO), a good copy
2016 Jul 13
6
[PATCH 0/5] Fix SELinux
We can use the setfiles(8) command to relabel the guest filesystem, even though we don't have a policy loaded nor SELinux enabled in the appliance kernel. This also deprecates or removes the old and broken SELinux support. This patch isn't quite complete - I would like to add some tests to the new API. I'm posting here to garner early feedback. Rich.
2015 Feb 11
4
[PATCH v3 0/2] add btrfs_balance_status and btrfs_scrub_status
v3: - rebase on upstream - fix some comments v2: - add check for the length of lines[] - the code parsing 'btrfs scrub -R status' output is changed into a loop Hu Tao (2): New API: btrfs_balance_status New API: btfs_scrub_status daemon/btrfs.c | 263 +++++++++++++++++++++++++++++++ generator/actions.ml | 26 +++
2015 Feb 02
0
[PATCH 2/2] New API: btfs_scrub_status.
...data_bytes_scrubbed: 4474441728 + * tree_bytes_scrubbed: 491896832 + * read_errors: 0 + * csum_errors: 0 + * verify_errors: 0 + * no_csum: 17760 + * csum_discards: 197622 + * super_errors: 0 + * malloc_errors: 0 + * uncorrectable_errors: 0 + * unverified_errors: 0 + * corrected_errors: 0 + * last_physical: 10301341696 + * + * or: + * + * strub status for 346121d1-1847-40f8-9b7b-2bf3d539c68f + * no stats available + */ + line = lin...
2015 Feb 11
0
[PATCH v3 2/2] New API: btfs_scrub_status
...data_bytes_scrubbed: 4474441728 + * tree_bytes_scrubbed: 491896832 + * read_errors: 0 + * csum_errors: 0 + * verify_errors: 0 + * no_csum: 17760 + * csum_discards: 197622 + * super_errors: 0 + * malloc_errors: 0 + * uncorrectable_errors: 0 + * unverified_errors: 0 + * corrected_errors: 0 + * last_physical: 10301341696 + * + * or: + * + * scrub status for 346121d1-1847-40f8-9b7b-2bf3d539c68f + * no stats available + */ + for (i = 1...
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
xfs_is_valid_magicnum is not actually a generic function that checks for magic numbers, instead it checks only for superblock's one. Signed-off-by: Paulo Alcantara <pcacjr at zytor.com> --- core/fs/xfs/xfs.c | 13 +++++-------- core/fs/xfs/xfs.h | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c index
2015 Feb 02
5
[PATCH 1/2] New API: btrfs_balance_status
Signed-off-by: Hu Tao <hutao at cn.fujitsu.com> --- These two patches are refactored to parse the output info structures. daemon/btrfs.c | 109 +++++++++++++++++++++++++++++++ generator/actions.ml | 10 +++ generator/structs.ml | 12 ++++ gobject/Makefile.inc | 2 + java/Makefile.inc
2015 Feb 03
2
[PATCH v2 0/2] add btrfs_balance_status and btrfs_scrub_status
changes in v2: - add check for the length of lines[] - the code parsing 'btrfs scrub -R status' output is changed into a loop Hu Tao (2): New API: btrfs_balance_status New API: btfs_scrub_status. daemon/btrfs.c | 263 +++++++++++++++++++++++++++++++ generator/actions.ml | 26 +++ generator/structs.ml | 34 ++++
2015 Feb 15
4
[PATCH v5 0/2] add btrfs_balance_status and btrfs_scrub_status
v5: - fix tests failure v4: - add reply_with_error when nlines < 1 - remove `i == X' tests. v3: - rebase on upstream - fix some comments v2: - add check for the length of lines[] - the code parsing 'btrfs scrub -R status' output is changed into a loop Hu Tao (2): New API: btrfs_balance_status New API: btfs_scrub_status daemon/btrfs.c
2015 Feb 13
3
[PATCH v4 0/2] add btrfs_balance_status and btrfs_scrub_status
v4: - add reply_with_error when nlines < 1 - remove `i == X' tests. v3: - rebase on upstream - fix some comments v2: - add check for the length of lines[] - the code parsing 'btrfs scrub -R status' output is changed into a loop Hu Tao (2): New API: btrfs_balance_status New API: btfs_scrub_status daemon/btrfs.c | 268
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...ngth] = '\0'; + + file->offset += dir->dir_entry_len; /* Update for next reading */ + + return 0; +} + +static inline struct ufs_sb_info * +set_ufs_info(struct ufs_super_block *sb, int ufs_type) +{ + struct ufs_sb_info *sbi; + + sbi = malloc(sizeof *sbi); + if (!sbi) + malloc_error("ufs_sb_info structure"); + + /* Setting up UFS-dependent info */ + if (ufs_type == UFS1) { + sbi->inode_size = sizeof (struct ufs1_inode); + sbi->groups_count = sb->ufs1.nr_frags / sb->frags_per_cg; + sbi->ufs1.delta_value = sb->ufs1.delta_value; + sbi->ufs1.cy...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...ngth] = '\0'; + + file->offset += dir->dir_entry_len; /* Update for next reading */ + + return 0; +} + +static inline struct ufs_sb_info * +set_ufs_info(struct ufs_super_block *sb, int ufs_type) +{ + struct ufs_sb_info *sbi; + + sbi = malloc(sizeof *sbi); + if (!sbi) + malloc_error("ufs_sb_info structure"); + + /* Setting up UFS-dependent info */ + if (ufs_type == UFS1) { + sbi->inode_size = sizeof (struct ufs1_inode); + sbi->groups_count = sb->ufs1.nr_frags / sb->frags_per_cg; + sbi->ufs1.delta_value = sb->ufs1.delta_value; + sbi->ufs1.cy...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...+ struct disk *disk = fs->fs_dev->disk; + + if (!disk->rdwr_sectors(disk, sb, XFS_SB_DADDR, 1, false)) + return -1; + + return 0; +} + +static struct xfs_fs_info *xfs_new_sb_info(xfs_sb_t *sb) +{ + struct xfs_fs_info *info; + + info = malloc(sizeof *info); + if (!info) + malloc_error("xfs_fs_info structure"); + + info->blocksize = be32_to_cpu(sb->sb_blocksize); + info->block_shift = sb->sb_blocklog; + info->dirblksize = 1 << (sb->sb_blocklog + sb->sb_dirblklog); + info->dirblklog = sb->sb_dirblklog; + info->inopb_...
2013 Apr 30
13
WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]()
Hello On my HP Compaq dc5800 with Ubuntu 13.04 and their 3.8.0-19-lowlatency kernel, I''ve got quite some kernel traces in the syslog. You can find them below or at http://pastebin.com/bLXPBX67 (to avoid line breaks…). These kernel traces all begin with: WARNING: at fs/btrfs/free-space-cache.c:921 __btrfs_write_out_cache+0x6b9/0x9a0 [btrfs]() Most of the time, it starts with: Call
2013 Jan 08
10
kernel BUG at fs/btrfs/volumes.c:3707 still not fixed in 3.7.1 (btrfs-zero-log required) but shown as "RIP btrfs_num_copies"
Unfortunately my laptop deadlocks from time to time, and too often it triggers this bug in btrfs which is quite hard to recover from. The bigger problem is that all the user sees (if anything) is seemingly unrelated info, namely, "RIP: btrfs_num_copies+0x42/0x0b" or somesuch http://marc.merlins.org/tmp/btrfs_num_copies.jpg It''s only if you have serial console, or netconsole,