Skip to content

Commit b1ff881

Browse files
Bump version number.
1 parent e0e7b7d commit b1ff881

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
v0.2.9:
4+
--------------
5+
6+
* **lib**:
7+
* Implement a callback-based population system, which can be used as an alternative to the event-based system that has been available up until now. For more information, please read the `How to use` section from the README.
8+
* Add a reimplementation of libnx's `usbHsEpPostBuffer()`, called `usbHsFsRequestEndpointDataXfer()`, which calls `usbHsEpPostBufferAsync()` with a hardcoded timeout value of 10 seconds (using the `USB_POSTBUFFER_TIMEOUT` define).
9+
* Port log handler QoL improvements from nxdumptool.
10+
* Log result codes in unpadded hexadecimal notation.
11+
* Reorganize `UsbHsFsMountFlags` enum.
12+
* SCSI INQUIRY strings now have prevalence over USB device descriptor strings, which affects the `manufacturer`, `product_name` and `serial_number` strings from `UsbHsFsDevice` elements.
13+
* Add `LIB_ASSERT` macro and update all static assertions throughout the codebase to use it.
14+
* Use `NX_IGNORE_ARG` macro where needed throughout the codebase.
15+
* SCSI driver:
16+
* Reorganize structs and enums.
17+
* Add missing comments/references.
18+
* Add `ScsiInquiryVitalProductDataPageCode` enum and rework `usbHsFsScsiSendInquiryCommand()` to make it possible to request Vital Product Data pages from attached LUNs.
19+
* Update `ScsiInquiryStandardData` struct to also retrieve serial number data from attached LUNs.
20+
* Add `ScsiInquiryUnitSerialNumberPageHeader` struct.
21+
* Update `usbHsFsScsiStartDriveLogicalUnit()` to make it read serial number information from the Unit Serial Number VPD page. Fallbacks to the serial number returned by the standard SCSI Inquiry command if not available.
22+
* Overhaul `usbHsFsScsiTransferCommand()` to make it handle both unexpected CSWs and CSW data residue values in a better way.
23+
* **fs-libs**: remove all build scripts for both NTFS-3G and lwext4, as well as the `fs-libs` Makefile target. Please use the now available devkitPro pacman packages `switch-ntfs-3g` and `switch-lwext4`. The `How to install` section of the README has been updated to reflect this change.
24+
* **fat**: calls to `ftruncate()` on FAT filesystems now restore the current file position after truncation.
25+
26+
**P.S.**: remember to remove previous installations of NTFS-3G and lwext4 \*before\* installing the official devkitPro pacman packages by running:
27+
```
28+
sudo (dkp-)pacman -R switch-libntfs-3g switch-lwext4
29+
```
30+
331
v0.2.8:
432
--------------
533

include/usbhsfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern "C" {
2222
/// Library version.
2323
#define LIBUSBHSFS_VERSION_MAJOR 0
2424
#define LIBUSBHSFS_VERSION_MINOR 2
25-
#define LIBUSBHSFS_VERSION_MICRO 8
25+
#define LIBUSBHSFS_VERSION_MICRO 9
2626

2727
/// Helper macro to generate a string based on a filesystem type value.
2828
#define LIBUSBHSFS_FS_TYPE_STR(x) ((x) == UsbHsFsDeviceFileSystemType_FAT12 ? "FAT12" : ((x) == UsbHsFsDeviceFileSystemType_FAT16 ? "FAT16" : ((x) == UsbHsFsDeviceFileSystemType_FAT32 ? "FAT32" : \
@@ -74,7 +74,7 @@ typedef struct {
7474
u16 pid; ///< Product ID. Retrieved from the device descriptor. Useful if you wish to implement a filter in your application.
7575
char manufacturer[64]; ///< UTF-8 encoded manufacturer string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
7676
char product_name[64]; ///< UTF-8 encoded product name string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
77-
char serial_number[64]; ///< UTF-8 encoded serial number string. Retrieved from the USB device descriptor. May be empty.
77+
char serial_number[64]; ///< UTF-8 encoded serial number string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
7878
u64 capacity; ///< Raw capacity from the logical unit this filesystem belongs to. Use statvfs() to get the actual filesystem capacity. May be shared with other UsbHsFsDevice entries.
7979
char name[32]; ///< Mount name used by the devoptab virtual device interface (e.g. "ums0:"). Use it as a prefix in libcstd I/O calls to perform operations on this filesystem.
8080
u8 fs_type; ///< UsbHsFsDeviceFileSystemType.

0 commit comments

Comments
 (0)