1
0
mirror of https://github.com/smartmontools/smartmontools synced 2025-04-18 01:37:36 +03:00

5305 Commits

Author SHA1 Message Date
chrfranke
0372a234d7 smartd.cpp: Add NVMe attribute logs.
(#1190, GH pull/221, GH pull/281)

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5685 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-04-15 16:49:32 +00:00
chrfranke
d45f32d242 Update NEWS.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5684 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-04-14 13:45:41 +00:00
chrfranke
eb7ac61a85 nvmeprint.cpp: Add JSON support for NVMe capabilities.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5683 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-04-14 12:45:37 +00:00
chrfranke
a4452ef33a do_release: Set SOURCE_DATE_EPOCH for reproducible tarball.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5682 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-04-13 13:15:27 +00:00
chrfranke
af9b8791e7 configure.ac: Treat MidnightBSD like FreeBSD for host detection.
Patch by Lucas Holt (GH pull/333)

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5681 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-04-13 12:23:55 +00:00
chrfranke
7f7f20384d farmprint.cpp: Suppress serial and WWN if '-q noserial' is used.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5680 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-27 10:21:28 +00:00
chrfranke
6851bb8792 smartctl.8.in: Document that '-x' no longer includes '-g wcreorder'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5679 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-27 10:11:17 +00:00
chrfranke
d3cdbaed0c ataprint.cpp: Add JSON values 'power_mode.*' (based on GH/pull 239).
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5678 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-27 09:41:10 +00:00
chrfranke
6306b068ed scsinvme.cpp: Add NVMe/SAT autodetection if '-d snt*/sat' is used.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5677 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-20 17:22:18 +00:00
chrfranke
55cebb3252 dev_interface.h: Make 'smart_interface::get_sat_device()' public.
This allows usage within 'autodetect_open()' functions.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5676 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-20 15:57:20 +00:00
chrfranke
46340ed121 scsinvme.cpp: Remove unneeded function 'sntjmicron_device::open()'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5675 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-20 14:45:41 +00:00
chrfranke
18fd30321a scsinvme.cpp: Remove outdated check for 'sntjmicron#please_try'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5674 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-20 14:27:58 +00:00
chrfranke
8a68243c30 smartctl.cpp: Exclude '-g wcreorder' from '-x' (#1702).
ATA ACS only offers a support check for the SCT FEATURE CONTROL
command, but not for its GET WRITE CACHE REORDERING subcommand.
If this subcommand fails, the next ATA command (SMART READ DATA)
may also fail in some cases.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5673 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-20 12:48:26 +00:00
chrfranke
1b2f98c2fb drivedb.h:
- USB: Buffalo (0x0411:0x0...): Merge '-d sat' entries.
- USB: Buffalo SSD-PSTA/N (0x0411:0x039d) (GH pull/307).
- USB: Packard Bell Carbon (0x0766:0x0017) (#1933).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5671 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-17 11:47:17 +00:00
chrfranke
2fd88ae1c7 drivedb.h:
- Phison Driven SSDs: DGSR2*GP13T (#1917), PS3110 256GB (#1829),
  S11-*-PHISON-SSD-B27.
- Phison Driven OEM SSDs: Goodram CX400 G2 (#1928).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5670 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-17 11:29:56 +00:00
chrfranke
23c8bd4558 drivedb.h:
- Swissbit X-7x Family SATA SSD: Simplify regex, add testcase
  comments (from #1781, #1800, GH pull/322).
- Swissbit X-8x Family SATA SSD: Add testcase comments
  (from #1801, GH pull/322).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5669 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-17 10:48:13 +00:00
chrfranke
bb6fc088ae drivedb.h: add Realtek RTL9220 (0x0bda:0x9220)
Patch by GH user 'Glucy-2' (GH pull/327).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5668 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-17 09:56:58 +00:00
chrfranke
dfa23d0854 drivedb.h: Swissbit X-7x, X-8x family SATA SSD.
Patch by GH user 'daniel-swb' (GH pull/322).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5667 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-17 09:44:04 +00:00
chrfranke
f06829d08b os_linux.cpp: Drop autodetection of deprecated device type 'marvell'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5666 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-14 15:29:53 +00:00
chrfranke
585f6d43da farmprint.cpp: Fix unit of write power on time.
Patch by GH user 'ThunderEX' (GH pull/328).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5665 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-03-14 15:24:29 +00:00
chrfranke
b75c8df0ce scsicmds.cpp: Fix handling multiple designators in VPD page
Patch by Ross Lagerwall (#1934).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5664 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-24 14:20:16 +00:00
chrfranke
a2a45dc189 scsicmds.cpp: Fix buffer overflow parsing VPD page 0x83
Patch by Ross Lagerwall (#1934).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5663 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-24 14:14:44 +00:00
chrfranke
d83391bae8 ataprint.cpp: Add support for '-l farm -T permissive'.
Overrides the FARM support check for rebranded Seagate drives
(see GH issues/320).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5662 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-15 15:51:06 +00:00
chrfranke
4b85120649 drivedb.h:
- USB: HP x911w (0x03f0:0x0c5c) (GH issues/315).
- USB: Add Samsung Portable SSD T9 (0x04e8:0x61fd) (#1904).
- USB: Asus Arion (0x0b05:0x1932) (GH issues/303).
- USB: WD Elements SE SSD (0x1058:0x266e) (GH issues/230).
- USB: TeamGroup C212 flash drive (0x13fe:0x6500) (GH issues/302).
- USB: TerraMaster D4-320 (0x5432:0x235c) (#1925).
- USB: Sabrent EC-SSHD (0x5910:0x13fd).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5660 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-05 14:46:53 +00:00
chrfranke
f82c2871a0 Update NEWS.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5659 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-02 18:09:00 +00:00
chrfranke
74eb37756f *print.cpp: Add JSON values for endurance and available spare.
'endurance_used.current_percent' is added for ATA, SCSI and NVMe,
'spare_available.{current,threshold}_percent' are added for ATA and NVMe.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5658 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-02 17:56:14 +00:00
chrfranke
03f76603f7 smartd.cpp: Drop support for platforms without 'sigaction()'.
configure.ac: Fail if '--with-signal-func' is used.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5657 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-02 15:37:48 +00:00
chrfranke
4db667c98e configure.ac: Remove defunct '--with-solaris-sparc-ata'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5656 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-02 15:01:21 +00:00
chrfranke
1e287155ba configure.ac: Change default for '--with-nvme-devicescan' to 'yes' on NetBSD.
Update related warnings.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5655 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-02-02 14:49:54 +00:00
chrfranke
32c822b075 Merge r5653 into 7.0-7.3 drivedb.h branches.
Drop maintenance of 6.5-6.6 branches.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5654 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-26 17:39:16 +00:00
chrfranke
6a7f181850 drivedb.h:
- SandForce Driven SSDs: OCZ-VERTEX3.20 (#1924).
- Intel/Solidigm S46x0/S45x0 Series SSDs: Rename, add Solidigm (#1878).
- Marvell based SanDisk SSDs: SDSSDH3* with extra space char (#1918).
- Silicon Motion based SSDs: AMD R5SL (#1744), DEXP C100 (#1919),
  TCSUNBOW X3 480GB (#1786).
- Silicon Motion based OEM SSDs: INTENSO SSD/W0413A0 (#1740),
  W0714A0 (#1858), SPCC M.2 SSD/U1209A0 (#1841), Vi550 S3 (#1899).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5653 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-26 17:19:23 +00:00
chrfranke
24d4c0290f scsiprint.cpp: Re-add JSON value 'model_name'.
This fixes a regression from r5286 (smartmontools 7.3).
Keep 'scsi_model_name' to provide backward compatibility with
release 7.3 and 7.4.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5652 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-24 14:36:18 +00:00
chrfranke
085c7e9a01 smartd.service: silence "Referenced but unset environment variable" warning
Patch by Andrew Sayers (GH pull/316).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5651 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-24 14:28:39 +00:00
samm-git
c4a26cba43 sntjmicron: workaround to avoid USB reset on selftest log query (GH: #256)
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5650 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-15 10:31:46 +00:00
samm-git
a8094edf8e AppVeyor CI: build NSIS from source
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5649 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-02 17:05:43 +00:00
chrfranke
bd0ccb3295 smartd.cpp: Avoid invalid "old test ... not run" message.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5648 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-02 15:11:25 +00:00
samm-git
9c3d1616ed remove nsis workaround from the build as it seems to be fixed in the upstream
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5647 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-02 09:54:55 +00:00
chrfranke
f475071e06 Happy New Year! Update copyright year in version info.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5646 4ea69e1a-61f1-4043-bf83-b5c94c648137
2025-01-01 10:40:19 +00:00
chrfranke
74b8a5c9f2 smartctl.8.in, smartd.conf.5.in: Document '-d jmb39x-q2,...'.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5645 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-12-10 15:01:40 +00:00
chrfranke
bff56ff9ae dev_jmb39x_raid.cpp: support QNAP-TR002 NAS
Add '-d jmb39x-q2,...' device type for JMB39x
protocol variant used by QNAP-TR002 NAS.
(#1290, GH pull/306)

Patch by Rodrigo Araujo.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5644 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-12-10 14:39:22 +00:00
samm-git
79032ddb74 CI: update nsis package name on appveyor to fix the build
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5643 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-12-06 08:30:26 +00:00
chrfranke
27f6661cab Update NEWS.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5642 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-12-01 18:39:23 +00:00
chrfranke
7a71275d1d os_win32.cpp: Decode Windows Server 2025 build number.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5641 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-30 12:36:16 +00:00
chrfranke
de0bd65244 Increase WMI timeout on Windows to address issues when
reading USB device ID.

Patch by Eaton Zveare (GH pull/277).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5640 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-20 17:00:51 +00:00
chrfranke
e3d332adb3 man pages: Fix typo, '-l directory,q' was mentioned but only
'-l directory,g' is supported.

Patch by Robin Schneider (GH pull/298).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5639 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-20 15:11:00 +00:00
samm-git
98ac39a3aa CI: attempt to fix appveyor build
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5638 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-20 11:23:28 +00:00
chrfranke
678e6f58ca openbsd_nvme_ioctl.h, os_openbsd.cpp: Enable NVMe on OpenBSD
smartctl.8.in, smartd.8.in: Add OpenBSD in documentation for NVMe

Patch by Martin Ziemer (#729, GH pull/299).

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5637 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-18 14:30:27 +00:00
chrfranke
4279621032 smartd.cpp: Ignore NSID in duplicate check of single namespace devices.
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5636 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-17 15:11:37 +00:00
samm-git
99db855e4d CI: update FreeBSD versions
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5635 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-16 03:39:08 +00:00
chrfranke
a05828c381 smartd.cpp: Ignore individual temperature sensors (#1850).
Some devices use these to report other values like maximum
temperature.

git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5634 4ea69e1a-61f1-4043-bf83-b5c94c648137
2024-11-13 10:53:43 +00:00