<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/btrfs/ioctl.h, branch linux-3.2.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.2.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-11-06T08:08:49Z</updated>
<entry>
<title>Btrfs: fix the new inspection ioctls for 32 bit compat</title>
<updated>2011-11-06T08:08:49Z</updated>
<author>
<name>Chris Mason</name>
</author>
<published>2011-11-02T19:48:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=740c3d226cbba6cd6a32adfb66809c94938f3e57'/>
<id>urn:sha1:740c3d226cbba6cd6a32adfb66809c94938f3e57</id>
<content type='text'>
The new ioctls to follow backrefs are not clean for 32/64 bit
compat.  This reworks them for u64s everywhere.  They are brand new, so
there are no problems with changing the interface now.

Signed-off-by: Chris Mason &lt;chris.mason@oracle.com&gt;
</content>
</entry>
<entry>
<title>btrfs: new ioctls to do logical-&gt;inode and inode-&gt;path resolving</title>
<updated>2011-09-29T10:54:28Z</updated>
<author>
<name>Jan Schmidt</name>
</author>
<published>2011-07-07T14:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d7728c960dccf775b92f2c4139f1216275a45c44'/>
<id>urn:sha1:d7728c960dccf775b92f2c4139f1216275a45c44</id>
<content type='text'>
these ioctls make use of the new functions initially added for scrub. they
return all inodes belonging to a logical address (BTRFS_IOC_LOGICAL_INO) and
all paths belonging to an inode (BTRFS_IOC_INO_PATHS).

Signed-off-by: Jan Schmidt &lt;list.btrfs@jan-o-sch.net&gt;
</content>
</entry>
<entry>
<title>btrfs: added helper functions to iterate backrefs</title>
<updated>2011-09-29T10:54:27Z</updated>
<author>
<name>Jan Schmidt</name>
</author>
<published>2011-06-13T17:52:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a542ad1bafc7df9fc16de8a6894b350a4df75572'/>
<id>urn:sha1:a542ad1bafc7df9fc16de8a6894b350a4df75572</id>
<content type='text'>
These helper functions iterate back references and call a function for each
backref. There is also a function to resolve an inode to a path in the
file system.

Signed-off-by: Jan Schmidt &lt;list.btrfs@jan-o-sch.net&gt;
</content>
</entry>
<entry>
<title>Btrfs: add mount -o auto_defrag</title>
<updated>2011-05-26T21:52:15Z</updated>
<author>
<name>Chris Mason</name>
</author>
<published>2011-05-24T19:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4cb5300bc839b8a943eb19c9f27f25470e22d0ca'/>
<id>urn:sha1:4cb5300bc839b8a943eb19c9f27f25470e22d0ca</id>
<content type='text'>
This will detect small random writes into files and
queue the up for an auto defrag process.  It isn't well suited to
database workloads yet, but works for smaller files such as rpm, sqlite
or bdb databases.

Signed-off-by: Chris Mason &lt;chris.mason@oracle.com&gt;
</content>
</entry>
<entry>
<title>btrfs: add readonly flag</title>
<updated>2011-05-12T12:48:31Z</updated>
<author>
<name>Arne Jansen</name>
</author>
<published>2011-03-23T15:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8628764e1a5e1998a42b9713e9edea7753653d01'/>
<id>urn:sha1:8628764e1a5e1998a42b9713e9edea7753653d01</id>
<content type='text'>
setting the readonly flag prevents writes in case an error is detected

Signed-off-by: Arne Jansen &lt;sensille@gmx.net&gt;
</content>
</entry>
<entry>
<title>btrfs: new ioctls for scrub</title>
<updated>2011-05-12T12:45:38Z</updated>
<author>
<name>Jan Schmidt</name>
</author>
<published>2011-03-11T14:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=475f63874d739d7842a56da94687f18d583ae654'/>
<id>urn:sha1:475f63874d739d7842a56da94687f18d583ae654</id>
<content type='text'>
adds ioctls necessary to start and cancel scrubs, to get current
progress and to get info about devices to be scrubbed.
Note that the scrub is done per-device and that the ioctl only
returns after the scrub for this devices is finished or has been
canceled.

Signed-off-by: Arne Jansen &lt;sensille@gmx.net&gt;
</content>
</entry>
<entry>
<title>btrfs: scrub</title>
<updated>2011-05-12T12:45:20Z</updated>
<author>
<name>Arne Jansen</name>
</author>
<published>2011-03-08T13:14:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a2de733c78fa7af51ba9670482fa7d392aa67c57'/>
<id>urn:sha1:a2de733c78fa7af51ba9670482fa7d392aa67c57</id>
<content type='text'>
This adds an initial implementation for scrub. It works quite
straightforward. The usermode issues an ioctl for each device in the
fs. For each device, it enumerates the allocated device chunks. For
each chunk, the contained extents are enumerated and the data checksums
fetched. The extents are read sequentially and the checksums verified.
If an error occurs (checksum or EIO), a good copy is searched for. If
one is found, the bad copy will be rewritten.
All enumerations happen from the commit roots. During a transaction
commit, the scrubs get paused and afterwards continue from the new
roots.

This commit is based on the series originally posted to linux-btrfs
with some improvements that resulted from comments from David Sterba,
Ilya Dryomov and Jan Schmidt.

Signed-off-by: Arne Jansen &lt;sensille@gmx.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lzo-support' of git://repo.or.cz/linux-btrfs-devel into btrfs-38</title>
<updated>2011-01-16T16:25:54Z</updated>
<author>
<name>Chris Mason</name>
</author>
<published>2011-01-16T16:25:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f892436eb2c3223fecda614a64d51f36f6ec2245'/>
<id>urn:sha1:f892436eb2c3223fecda614a64d51f36f6ec2245</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Btrfs: Add BTRFS_IOC_SUBVOL_GETFLAGS/SETFLAGS ioctls</title>
<updated>2010-12-23T00:49:19Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-12-20T08:30:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0caa102da82799efaba88e234484786a9591c797'/>
<id>urn:sha1:0caa102da82799efaba88e234484786a9591c797</id>
<content type='text'>
This allows us to set a snapshot or a subvolume readonly or writable
on the fly.

Usage:

Set BTRFS_SUBVOL_RDONLY of btrfs_ioctl_vol_arg_v2-&gt;flags, and then
call ioctl(BTRFS_IOCTL_SUBVOL_SETFLAGS);

Changelog for v3:

- Change to pass __u64 as ioctl parameter.

Changelog for v2:

- Add _GETFLAGS ioctl.
- Check if the passed fd is the root of a subvolume.
- Change the name from _SNAP_SETFLAGS to _SUBVOL_SETFLAGS.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
<entry>
<title>Btrfs: Add readonly snapshots support</title>
<updated>2010-12-23T00:49:17Z</updated>
<author>
<name>Li Zefan</name>
</author>
<published>2010-12-20T08:04:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b83cc9693f39689490970c19f6c5b866f6719a70'/>
<id>urn:sha1:b83cc9693f39689490970c19f6c5b866f6719a70</id>
<content type='text'>
Usage:

Set BTRFS_SUBVOL_RDONLY of btrfs_ioctl_vol_arg_v2-&gt;flags, and call
ioctl(BTRFS_I0CTL_SNAP_CREATE_V2).

Implementation:

- Set readonly bit of btrfs_root_item-&gt;flags.
- Add readonly checks in btrfs_permission (inode_permission),
btrfs_setattr, btrfs_set/remove_xattr and some ioctls.

Changelog for v3:

- Eliminate btrfs_root-&gt;readonly, but check btrfs_root-&gt;root_item.flags.
- Rename BTRFS_ROOT_SNAP_RDONLY to BTRFS_ROOT_SUBVOL_RDONLY.

Signed-off-by: Li Zefan &lt;lizf@cn.fujitsu.com&gt;
</content>
</entry>
</feed>
