Commit 3214da57 authored by chrfranke's avatar chrfranke
Browse files

dev_jmb39x_raid.cpp: Enhance LBA range from 33-62 to 1-255 (#1594).

smartctl.8.in: Update related documentation.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5366 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent c769759c
$Id$
2022-04-30 Christian Franke <franke@computer.org>
dev_jmb39x_raid.cpp: Enhance LBA range from 33-62 to 1-255 (#1594).
smartctl.8.in: Update related documentation.
2022-04-27 Gabriele Pohl <contact@dipohl.de>
drivedb.h:
......
......@@ -3,7 +3,7 @@
*
* Home page of code is: https://www.smartmontools.org
*
* Copyright (C) 2019-21 Christian Franke
* Copyright (C) 2019-22 Christian Franke
*
* Based on JMraidcon (same license):
* Copyright (C) 2010 Werner Johansson
......@@ -729,8 +729,8 @@ ata_device * smart_interface::get_jmb39x_device(const char * type, smart_device
force = true;
n1 += n2;
}
if (!(n1 == len && port <= 4 && 33 <= lba && lba <= 62)) {
set_err(EINVAL, "Option -d %s,N[,sLBA][,force] must have 0 <= N <= 4 [, 33 <= LBA <= 62]", prefix);
if (!(n1 == len && port <= 4 && 1 <= lba && lba <= 255)) {
set_err(EINVAL, "Option -d %s,N[,sLBA][,force] must have 0 <= N <= 4 [, 1 <= LBA <= 255]", prefix);
return 0;
}
......
......@@ -729,11 +729,17 @@ some QNAP NAS devices.
The integer N is the port number from 0 to 4.
.br
\fBWARNING: The ATA pass-through commands are issued via READ/WRITE commands
to LBA 33 of the RAID volume.
to a LBA of the RAID volume.
Using this option with other devices may overwrite this sector.\fP
.br
The LBA could be selected in the range 33 (last sector of a GPT) to 62 (last
sector of traditional boot area).
The default LBA is 33.
The LBA could be selected in the range from 1 to 255 inclusive.
.br
If a GPT partition table is used, LBA 33 contains the last 4 (of 128)
entries of the partition table.
These entries are zero filled in most cases.
If a MBR partition table is used, LBA 33 may be zero filled or may contain
code from a boot loader.
.br
By default, access to the device is refused if the selected sector is not
zero filled.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment