Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 152296 Details for
Bug 232663
resize2fs corrupts symlinks with xattrs on big-endian platforms
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Test case
rwtest.c (text/plain), 1.48 KB, created by
Bryn M. Reeves
on 2007-04-11 17:44:42 UTC
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-04-11 17:44:42 UTC
Size:
1.48 KB
patch
obsolete
>/* > * Test byteswapping > * Based on debugfs/debugfs.c > */ > >#include <stdio.h> >#include <unistd.h> >#include <stdlib.h> >#include <string.h> >#include <errno.h> > >#include <fcntl.h> >#include <sys/types.h> >#include <sys/stat.h> > >#include <ext2fs/ext2_fs.h> >#include <ext2fs/ext2fs.h> > >int main(int argc, char **argv) >{ > int ino, retval = 0; > struct ext2_inode *ibuf; > char * device; > ext2_filsys current_fs = NULL; > > if (argc != 3) { > fprintf(stderr, "usage: rwtest <file system> <ino>\n"); > exit(1); > } > > device = argv[1]; > ino = atoi(argv[2]); > > fprintf (stderr, "rwtest\n"); > > retval = ext2fs_open(device, EXT2_FLAG_RW, 0, 0, > unix_io_manager, ¤t_fs); > if (retval) { > fprintf(stderr, "got %d while opening filesystem\n", retval); > current_fs = NULL; > return; > } > > retval = ext2fs_read_inode_bitmap(current_fs); > if (retval) { > fprintf(stderr, "got %d while reading inode bitmap\n", retval); > goto errout; > } > retval = ext2fs_read_block_bitmap(current_fs); > if (retval) { > fprintf(stderr, "got %d while reading block bitmap\n", retval); > goto errout; > } > > ibuf = malloc(EXT2_INODE_SIZE(current_fs->super)); > if (!ibuf) { > fprintf(stderr, "could not allocate memory\n"); > exit(1); > } > > ext2fs_read_inode_full(current_fs, ino, ibuf, EXT2_INODE_SIZE(current_fs->super)); > ext2fs_write_inode(current_fs, ino, ibuf); > >errout: > if (ibuf) > free(ibuf); > > if (current_fs) { > retval = ext2fs_close(current_fs); > if (retval) > fprintf(stderr, "ext2fs_close: %d\n", retval); > } > > return retval; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 232663
:
150239
|
150246
|
150286
|
152294
|
152295
| 152296