<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/ntfs3/dir.c, branch linux-6.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-6.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2024-09-12T09:13:02Z</updated>
<entry>
<title>fs/ntfs3: Check more cases when directory is corrupted</title>
<updated>2024-09-12T09:13:02Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-06-17T11:53:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b5a531dd2f7257ee248664f60c97f4eaa12837eb'/>
<id>urn:sha1:b5a531dd2f7257ee248664f60c97f4eaa12837eb</id>
<content type='text'>
[ Upstream commit 744375343662058cbfda96d871786e5a5cbe1947 ]

Mark ntfs dirty in this case.
Rename ntfs_filldir to ntfs_dir_emit.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Fix getting file type</title>
<updated>2024-08-03T07:00:21Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-06-04T07:41:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0bbd61e1ac77f079dad583a249aa854aa4dfd073'/>
<id>urn:sha1:0bbd61e1ac77f079dad583a249aa854aa4dfd073</id>
<content type='text'>
[ Upstream commit 24c5100aceedcd47af89aaa404d4c96cd2837523 ]

An additional condition causes the mft record to be read from disk
and get the file type dt_type.

Fixes: 22457c047ed97 ("fs/ntfs3: Modified fix directory element type detection")
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'ntfs3_for_6.10' of https://github.com/Paragon-Software-Group/linux-ntfs3</title>
<updated>2024-05-25T21:19:01Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2024-05-25T21:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89b61ca478dcb66625fb36f3b47ef4e0eae2e461'/>
<id>urn:sha1:89b61ca478dcb66625fb36f3b47ef4e0eae2e461</id>
<content type='text'>
Pull ntfs3 updates from Konstantin Komarov:
 "Fixes:
   - reusing of the file index (could cause the file to be trimmed)
   - infinite dir enumeration
   - taking DOS names into account during link counting
   - le32_to_cpu conversion, 32 bit overflow, NULL check
   - some code was refactored

  Changes:
   - removed max link count info display during driver init

  Remove:
   - atomic_open has been removed for lack of use"

* tag 'ntfs3_for_6.10' of https://github.com/Paragon-Software-Group/linux-ntfs3:
  fs/ntfs3: Break dir enumeration if directory contents error
  fs/ntfs3: Fix case when index is reused during tree transformation
  fs/ntfs3: Mark volume as dirty if xattr is broken
  fs/ntfs3: Always make file nonresident on fallocate call
  fs/ntfs3: Redesign ntfs_create_inode to return error code instead of inode
  fs/ntfs3: Use variable length array instead of fixed size
  fs/ntfs3: Use 64 bit variable to avoid 32 bit overflow
  fs/ntfs3: Check 'folio' pointer for NULL
  fs/ntfs3: Missed le32_to_cpu conversion
  fs/ntfs3: Remove max link count info display during driver init
  fs/ntfs3: Taking DOS names into account during link counting
  fs/ntfs3: remove atomic_open
  fs/ntfs3: use kcalloc() instead of kzalloc()
</content>
</entry>
<entry>
<title>fs/ntfs3: Break dir enumeration if directory contents error</title>
<updated>2024-05-24T09:50:12Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-04-23T14:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=302e9dca8428979c9c99f2dbb44dc1783f5011c3'/>
<id>urn:sha1:302e9dca8428979c9c99f2dbb44dc1783f5011c3</id>
<content type='text'>
If we somehow attempt to read beyond the directory size, an error
is supposed to be returned.

However, in some cases, read requests do not stop and instead enter
into a loop.

To avoid this, we set the position in the directory to the end.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
Cc: stable@vger.kernel.org
</content>
</entry>
<entry>
<title>ntfs3: add legacy ntfs file operations</title>
<updated>2024-04-23T07:39:07Z</updated>
<author>
<name>Christian Brauner</name>
</author>
<published>2024-04-16T10:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9b872cc50daa7d1cb07d5bfd27ee9fa3f4e7eda9'/>
<id>urn:sha1:9b872cc50daa7d1cb07d5bfd27ee9fa3f4e7eda9</id>
<content type='text'>
To ensure that ioctl()s can't be used to circumvent write restrictions.

Signed-off-by: Christian Brauner &lt;brauner@kernel.org&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add ioctl operation for directories (FITRIM)</title>
<updated>2024-01-29T09:05:09Z</updated>
<author>
<name>Nekun</name>
</author>
<published>2023-10-30T08:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1f5fa4b3b85ceb43f1053290f0ade037b50e6297'/>
<id>urn:sha1:1f5fa4b3b85ceb43f1053290f0ade037b50e6297</id>
<content type='text'>
While ntfs3 supports discards, FITRIM ioctl() command has defined
only for regular files. This may confuse users trying to invoke
`fstrim` utility with the directory argument (for example, call
`fstrim &lt;mountpoint&gt;` which is the common practice). In this case,
ioctl() returns -ENOTTY without any error messages in kernel ring
buffer, this may be easily interpreted as no support for discards
in ntfs3 driver.

Currently only FITRIM command implemented in ntfs_ioctl() and
passed inode used only for dereferencing NTFS superblock, so
no need for separate ioctl() handler for directories, just add
existing ntfs_ioctl() handler to ntfs_dir_operations.

Signed-off-by: Nekun &lt;nekokun@firemail.cc&gt;
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Use i_size_read and i_size_write</title>
<updated>2024-01-29T07:48:33Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2024-01-26T08:12:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4fd6c08a16d7f1ba10212c9ef7bc73218144b463'/>
<id>urn:sha1:4fd6c08a16d7f1ba10212c9ef7bc73218144b463</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Add and fix comments</title>
<updated>2023-12-06T14:46:15Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-11-28T08:08:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d6ca2d253900b9b0a3a1ad77541d606010f5e5eb'/>
<id>urn:sha1:d6ca2d253900b9b0a3a1ad77541d606010f5e5eb</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Improve ntfs_dir_count</title>
<updated>2023-12-06T14:46:07Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-11-24T08:24:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6a799c928b78b14999b7705c4cca0f88e297fe96'/>
<id>urn:sha1:6a799c928b78b14999b7705c4cca0f88e297fe96</id>
<content type='text'>
Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
<entry>
<title>fs/ntfs3: Modified fix directory element type detection</title>
<updated>2023-12-06T14:46:07Z</updated>
<author>
<name>Konstantin Komarov</name>
</author>
<published>2023-11-24T08:17:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=22457c047ed971f2f2e33be593ddfabd9639a409'/>
<id>urn:sha1:22457c047ed971f2f2e33be593ddfabd9639a409</id>
<content type='text'>
Unfortunately reparse attribute is used for many purposes (several dozens).
It is not possible here to know is this name symlink or not.
To get exactly the type of name we should to open inode (read mft).
getattr for opened file (fstat) correctly returns symlink.

Signed-off-by: Konstantin Komarov &lt;almaz.alexandrovich@paragon-software.com&gt;
</content>
</entry>
</feed>
