assume the partition offset is zero when the device name terminates with /raw
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24649 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e146dee317
commit
efb7e1703e
@ -478,7 +478,7 @@ main(int argc, const char *const *argv)
|
||||
#ifdef __BEOS__
|
||||
|
||||
// get a partition info
|
||||
if (!noPartition) {
|
||||
if (!noPartition && strncmp("/raw", fileName + strlen(fileName) - 4, 4)) {
|
||||
partition_info partitionInfo;
|
||||
if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo) == 0) {
|
||||
partitionOffset = partitionInfo.offset;
|
||||
|
Loading…
Reference in New Issue
Block a user