<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fstools/libblkid-tiny, branch master</title>
<subtitle>OpenWrt filesystem utilities</subtitle>
<id>https://git.openwrt.org/project/fstools/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/fstools/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/'/>
<updated>2023-02-28T08:34:00Z</updated>
<entry>
<title>libblkid-tiny: add exfat superblock support</title>
<updated>2023-02-28T08:34:00Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2023-02-23T18:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=bfe882d5ff4eeebb8f57c8a0f9b9e767a57870d8'/>
<id>urn:sha1:bfe882d5ff4eeebb8f57c8a0f9b9e767a57870d8</id>
<content type='text'>
exFAT became very popular over last years and also well supported with
Linux kernel driver and macOS support. It's commonly used for USB
drivers. Port a simple support for it from util-linux / libblkid.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>fstools: fix a couple of minor code problems</title>
<updated>2021-11-16T21:52:36Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-11-16T20:49:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=77c02889177c43df8ebe07bce4d55b7f7358118f'/>
<id>urn:sha1:77c02889177c43df8ebe07bce4d55b7f7358118f</id>
<content type='text'>
Improve error handling and fix a resource leak inside an error path.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: fix invalid open syscall return check</title>
<updated>2021-08-03T20:38:32Z</updated>
<author>
<name>Daniel Danzberger</name>
</author>
<published>2021-08-02T09:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=141ac851aee06512934ba6fbd90af78066593844'/>
<id>urn:sha1:141ac851aee06512934ba6fbd90af78066593844</id>
<content type='text'>
open() returns -1 on error, not 0 (stdin).

Signed-off-by: Daniel Danzberger &lt;daniel@dd-wrt.com&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: fix buffer overflow</title>
<updated>2021-05-15T23:28:11Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2021-05-12T16:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=d47909ea1e5f32cfc9f756a04edc052717c98ae6'/>
<id>urn:sha1:d47909ea1e5f32cfc9f756a04edc052717c98ae6</id>
<content type='text'>
Copying device name into a fixed-length buffer is problematic as
the name can be longer than the buffer, resulting in subsequent fields
getting corrupted and potentially even worse things.
Drop strcpy of device name and use of the copied value as it is known
anyway.

Before this fix:
/dev/mapper/owrt--volumes--e093cc66-rw_test: UUID="c66-rw_test" LABEL="test" VERSION="1.14" TYPE="f2fs"

After this fix:
/dev/mapper/owrt--volumes--e093cc66-rw_test: UUID="5eda3e52-3427-493a-a6d6-ffdb5a5836fd" LABEL="test" VERSION="1.14" TYPE="f2fs"

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
<entry>
<title>Truncate FAT filesystem label until 1st occurance of a blank (0x20)</title>
<updated>2020-05-06T06:50:42Z</updated>
<author>
<name>Mirko Vogt</name>
</author>
<published>2020-04-25T23:47:50Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=cddd902cc165e0af01469d1cb8defd9b1366093f'/>
<id>urn:sha1:cddd902cc165e0af01469d1cb8defd9b1366093f</id>
<content type='text'>
According to spec the FAT filesystem label is not terminated by a
\0-byte but instead has a fixed length where the name is padded by
blanks.
Before libblkid-tiny just passed the always 11 bytes long blank padded
string through, however it makes matching for a filesystem label
inconsistent with other filesystems, which use a \0-terminated string.

Before: "foobar     "
After : "foobar"

Signed-off-by: Mirko Vogt &lt;mirko-openwrt@nanl.de&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: fix f2fs labels by increasing label buffer</title>
<updated>2020-01-18T13:43:09Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-01-14T18:49:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=189b41b6b48786a51eb2b8bc450cb7d560f030f0'/>
<id>urn:sha1:189b41b6b48786a51eb2b8bc450cb7d560f030f0</id>
<content type='text'>
f2fs max label length is 1024B (512 * uint16_t) which is way above
current 256B used in `struct blkid_struct_probe` which renders labels on
f2fs system unusable:

 $ mkfs.f2fs -l drive /dev/sda1
 $ block info /dev/sda1
 label buffer too small 1024 &gt; 255

So increase the label buffer again in order to make enough space for
f2fs labels.

Fixes: FS#2735
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: fix symbol collision with full libblkid</title>
<updated>2019-12-22T18:54:42Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2019-12-22T18:46:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=b4e25d54035c5092e8e9b46ab63500e95ac8c730'/>
<id>urn:sha1:b4e25d54035c5092e8e9b46ab63500e95ac8c730</id>
<content type='text'>
The recent introduction of blkid_new_probe() and blkid_free_probe() in the
dynamically linked libblkid-tiny caused the dlopen'd libblkid.so to call into
the wrong version of blkid_new_probe() within blkid_new_probe_from_filename(),
leading to memory corruption and eventual segmentation faults.

Fixes: b82c5c1 ("libblkid-tiny: add functions for allocating &amp; freeing probe struct")
Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: vfat: Change parsing label in special cases</title>
<updated>2019-12-20T06:44:26Z</updated>
<author>
<name>Pali Rohár</name>
</author>
<published>2019-12-17T07:28:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=111a43f8c64683e79859dcb3f4b7aa437e24502b'/>
<id>urn:sha1:111a43f8c64683e79859dcb3f4b7aa437e24502b</id>
<content type='text'>
commit f0ca7e80d7a171701d0d04a3eae22d97f15d0683 upstream.

* Use only label from the root directory and do not fallback to the label
  stored in boot sector. This is how MS-DOS 6.22, MS-DOS 7.10, Windows 98,
  Windows XP and also Windows 10 behave. Moreover Windows XP and Windows 10
  do not touch label in boot sector anymore, so removing FAT label on those
  Windowses leads to having old label still stored in boot sector (which
  MS-DOS and Windows fully ignore).

* Label entry "NO NAME" in root directory is treated as label "NO NAME"
  instead of empty label. In root directory it has no special meaning.
  String "NO NAME" has a special meaning (empty label) only for label
  stored in boot sector.

* Label from the boot sector is now stored into LABEL_FATBOOT field. So if
  there are applications which depends or needs to read this label, they
  have ability.

After this change LABEL always correspondent to the label from the root
directory and LABEL_FATBOOT to the label stored in the boot sector. If some
of those labels is missing or is not present (e.g. "NO LABEL" in boot
sector) then particular field is not set.

Signed-off-by: Pali Rohár &lt;pali.rohar@gmail.com&gt;
[rmilecki: drop unneeded now downstream hacks for handling spaces]
Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
<entry>
<title>libblkid-tiny: vfat: Fix reading labels which starts with byte 0x05</title>
<updated>2019-12-20T06:44:23Z</updated>
<author>
<name>Pali Rohár</name>
</author>
<published>2019-12-17T07:28:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=f43a1aa6655b702e690179130b3c3fe40b73aaa2'/>
<id>urn:sha1:f43a1aa6655b702e690179130b3c3fe40b73aaa2</id>
<content type='text'>
commit e526f503918cc29d8b1ccf36a5c3a34645d2be6e upstream.

When FAT directory entry has leading byte 0x05 it is interpreted as byte
0xE5. This is how FAT stores file name which starts with byte 0xE5 as
leading byte in 0xE5 in FAT directory entry means that file slot is empty.

Fixes: #533
</content>
</entry>
<entry>
<title>libblkid-tiny: add blkid_probe_set_id_label() stub</title>
<updated>2019-12-20T06:44:08Z</updated>
<author>
<name>Rafał Miłecki</name>
</author>
<published>2019-12-17T07:28:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/fstools/commit/?id=157924dfca61d37f29017ebb4a5eab8137a0cd27'/>
<id>urn:sha1:157924dfca61d37f29017ebb4a5eab8137a0cd27</id>
<content type='text'>
This stub will allow porting more upstream code without commenting out
calls and them unused variables. This will simplify maintenance.

Signed-off-by: Rafał Miłecki &lt;rafal@milecki.pl&gt;
</content>
</entry>
</feed>
