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 188861 Details for
Bug 253803
mkqdisk cannot use device with 4kb sector size
[?]
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.
ioctl debugging program to grab sector / block sizes
itest.c (text/plain), 617 bytes, created by
Lon Hohberger
on 2007-09-06 15:13:35 UTC
(
hide
)
Description:
ioctl debugging program to grab sector / block sizes
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2007-09-06 15:13:35 UTC
Size:
617 bytes
patch
obsolete
>#include <sys/ioctl.h> >#include <linux/fs.h> >#include <stdio.h> >#include <unistd.h> >#include <fcntl.h> > >int >main(int argc, char **argv) >{ > int fd; > unsigned long ssz; > size_t bsz; > > if (argc < 2) { > printf("Usage: %s <device>\n", argv[0]); > return -1; > } > > fd = open(argv[1], O_RDONLY); > > if (fd < 0) { > perror("open"); > return -1; > } > > ssz = 0; > if (ioctl(fd, BLKSSZGET, &ssz) < 0) { > perror("ioctl1"); > return -1; > } > > bsz = 0; > if (ioctl(fd, BLKBSZGET, &bsz) < 0) { > perror("ioctl2"); > return -1; > } > > close(fd); > > printf("BLKSSZGET = %d\n", (int)ssz); > printf("BLKBSZGET = %d\n", (int)bsz); > > return 0; >}
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 253803
: 188861 |
189241