block-device Questions

3

Solved

I am trying to get some information (specifically block size) of block device in linux, in C++. Is it possible to get block size of a device without mounting it and possibly without looking into dy...
Warty asked 7/12, 2011 at 13:41

2

Solved

How do I read/write a block device? I heard I read/write like a normal file so I setup a loop device by doing sudo losetup /dev/loop4 ~/file Then I ran the app on the file then the loop device ...
Flotation asked 24/10, 2014 at 2:44

2

Solved

public final static void lockDevice() { try { if (devicePolicyManager.isAdminActive(adminComponent)) { devicePolicyManager.lockNow(); } } catch (final Exception ex) { ... } } The abo...
Hoofbound asked 24/1, 2012 at 13:45

1

I'm using kubernetes v1.16.10 with a Ceph 13.2.2 Mimic cluster for dynamic volume provisioning through ceph-csi. But then I have found ceph-rbd Ceph RBD (kubernetes.io/rbd) https://kubernetes.io...
Northeastwards asked 3/6, 2020 at 8:59

3

EDIT and TL;DR: ubuntu@ip-172-31-19-77:~/.aws$ aws ec2 describe-instances | jq . | grep -i device "BlockDeviceMappings": [], "RootDeviceType": "ebs", "RootDeviceName": "/dev/sda1", "DeviceInde...
Dougall asked 18/4, 2018 at 4:9

1

Solved

I'm currently trying to implement a (not that ?) simple kernel block device driver. I inspired mainly from the book Linux Device Drivers, 3rd Edition which is not totally up-to-date anymore as it ...
Retardant asked 11/4, 2018 at 17:21

3

Solved

I am unsure if this is the correct place for this question. I am attempting to obtain the axis position values from a joystick /dev/input/js0 on my system. If I run jstest /dev/input/js0 it will gi...
Hydrastis asked 15/4, 2013 at 0:18

1

I want to configure the qemu to attach a specific block device to the VM? Following is the command I am using now: qemu-system-x86_64 -enable-kvm -machine type=pc,accel=kvm -cpu host -nographi...
Reive asked 3/10, 2017 at 9:51

2

Hi I recently did a experiment of virtio-scsi over rbd through qemu target (for its DISCARD/TRIM support), and compared the throughput and iops with that of a virtio-blk over rbd setup on the same ...
Plucky asked 19/8, 2016 at 5:5

3

I have a 20 gb SSD device on my laptop that i decided to try bcache on. It seemed to work, but for some time now, I've been getting an error on boot: error on 0f3bbb55-6839-4ed6-8127-7976a969f726:...
Roybn asked 2/4, 2014 at 18:54

2

On Linux, I can access a hard drive as /dev/sdX. This ignores any partition tables, file systems, etc, and just accesses the drive block by block. What is the equivalent in Cygwin? I already search...

1

I am writing a Linux block device driver that receives requests via a function registered with blk_init_queue(). My hardware device reorders requests and as such to avoid read-after-write conflic...
Entozoic asked 15/4, 2016 at 17:23

1

Solved

I wrote a block driver program which creates a dummy block device (sbd0). I registered all device operations for that block device: (Refer to include/linux/blkdev.h in 2.6.32 kernel source) stati...
Tadashi asked 24/4, 2014 at 10:14

3

Solved

I am reading Linux Kernel Development by Robert Love. I don't understand this paragraph about the bio structure: The basic container for block I/O within the kernel is the bio structure, which i...
Apical asked 28/1, 2013 at 18:51

4

Solved

The Challenge: I have an Linux hand-held device, which records data and stores it to the disc. It should exchange these data with a Windows application via USB. When this data is accessible by the ...
Mclaren asked 16/5, 2011 at 20:7

2

I am working on this driver that connects the hard disk over the network. There is a bug that if I enable two or more hard disks on the computer, only the first one gets the partitions looked over ...
Sumikosumma asked 22/7, 2011 at 4:24

2

Solved

hope you can help me: I'm trying to determine whether the device is removable or not, all i have is device name (/dev/sdc). Actually, I need to determine when the file on removable media or on loca...
Infirmity asked 2/10, 2011 at 9:46

1

I have a userlevel program which opens a file using the flags O_WRONLY|O_SYNC. The program creates 256 threads which attempt to write 256 or more bytes of data each to the file. I want to have a to...
Wallachia asked 24/8, 2011 at 21:53

2

Hej, it is relatively easy to use a file for emulating a block-device using losetup in Linux: http://www.walkernews.net/2007/07/01/create-linux-loopback-file-system-on-disk-file/ Can anyone pl...
Tasteful asked 23/12, 2010 at 14:46
1

© 2022 - 2024 — McMap. All rights reserved.