Skip to content

Commit

Permalink
Bump version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMatterCore committed Feb 24, 2024
1 parent e0e7b7d commit b1ff881
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

v0.2.9:
--------------

* **lib**:
* 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.
* 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).
* Port log handler QoL improvements from nxdumptool.
* Log result codes in unpadded hexadecimal notation.
* Reorganize `UsbHsFsMountFlags` enum.
* SCSI INQUIRY strings now have prevalence over USB device descriptor strings, which affects the `manufacturer`, `product_name` and `serial_number` strings from `UsbHsFsDevice` elements.
* Add `LIB_ASSERT` macro and update all static assertions throughout the codebase to use it.
* Use `NX_IGNORE_ARG` macro where needed throughout the codebase.
* SCSI driver:
* Reorganize structs and enums.
* Add missing comments/references.
* Add `ScsiInquiryVitalProductDataPageCode` enum and rework `usbHsFsScsiSendInquiryCommand()` to make it possible to request Vital Product Data pages from attached LUNs.
* Update `ScsiInquiryStandardData` struct to also retrieve serial number data from attached LUNs.
* Add `ScsiInquiryUnitSerialNumberPageHeader` struct.
* 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.
* Overhaul `usbHsFsScsiTransferCommand()` to make it handle both unexpected CSWs and CSW data residue values in a better way.
* **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.
* **fat**: calls to `ftruncate()` on FAT filesystems now restore the current file position after truncation.

**P.S.**: remember to remove previous installations of NTFS-3G and lwext4 \*before\* installing the official devkitPro pacman packages by running:
```
sudo (dkp-)pacman -R switch-libntfs-3g switch-lwext4
```

v0.2.8:
--------------

Expand Down
4 changes: 2 additions & 2 deletions include/usbhsfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" {
/// Library version.
#define LIBUSBHSFS_VERSION_MAJOR 0
#define LIBUSBHSFS_VERSION_MINOR 2
#define LIBUSBHSFS_VERSION_MICRO 8
#define LIBUSBHSFS_VERSION_MICRO 9

/// Helper macro to generate a string based on a filesystem type value.
#define LIBUSBHSFS_FS_TYPE_STR(x) ((x) == UsbHsFsDeviceFileSystemType_FAT12 ? "FAT12" : ((x) == UsbHsFsDeviceFileSystemType_FAT16 ? "FAT16" : ((x) == UsbHsFsDeviceFileSystemType_FAT32 ? "FAT32" : \
Expand Down Expand Up @@ -74,7 +74,7 @@ typedef struct {
u16 pid; ///< Product ID. Retrieved from the device descriptor. Useful if you wish to implement a filter in your application.
char manufacturer[64]; ///< UTF-8 encoded manufacturer string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
char product_name[64]; ///< UTF-8 encoded product name string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
char serial_number[64]; ///< UTF-8 encoded serial number string. Retrieved from the USB device descriptor. May be empty.
char serial_number[64]; ///< UTF-8 encoded serial number string. Retrieved from SCSI Inquiry data or the USB device descriptor. May be empty.
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.
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.
u8 fs_type; ///< UsbHsFsDeviceFileSystemType.
Expand Down

0 comments on commit b1ff881

Please sign in to comment.