| From | Subject | Date |
|---|---|---|
| Steve French | remove some of cifs hard to read ifdefs
The useless braces should be removed now. The "ifdef mania" should be
cut by about a quarter by the following patch (following up on the
patch idea posted late last week):
http://git.kernel.org/?p=linux/kernel/git/sfrench/cifs-2.6.git;a=commitdiff;h=90c81e0b...
--
Thanks,
Steve
-
| Feb 12, 5:25 pm 2008 |
| J. Bruce Fields | Re: i_version changes
I don't understand that comment. (What is "this" in the second
That does sound likely to be confusing. Any chance we could just make
the new behavior mandatory?
The one thing we need in nfsd is just an easy (in-kernel) way to check
whether a given filesystem supports this, so nfsd can decide whether to
use ctime or i_version as the change attribute.
-
| Feb 12, 4:06 pm 2008 |
| Andrew Morton | Re: [PATCH 4/8][for -mm] mem_notify v6: memory_pressure_noti...
On Sun, 10 Feb 2008 00:24:28 +0900
This seems rather arbitrary. Why choose this stage in the page
reclaimation process rather than some other stage?
If this feature is useful then I'd expect that some applications would want
notification at different times, or at different levels of VM distress. So
this semi-randomly-chosen notification point just won't be strong enough in
real-world use.
Does this change work correctly and appropriately for processes which are
running in a cgroup memory con...
| Feb 12, 6:56 pm 2008 |
| Benny Halevy | Re: Question about do_sync_read()
FWIW, it's a bit more efficient to set aio_read to generic_file_aio_read and
call it unconditionally.
Benny
-
| Feb 12, 4:44 am 2008 |
| David Miller | BTRFS only works with PAGE_SIZE <= 4K
From: Chris Mason <chris.mason@oracle.com>
Any page size larger than 4K will not work with btrfs. All of the
extent stuff assumes that PAGE_SIZE <= sectorsize.
I confirmed this by forcing mkfs.btrfs to use an 8K sectorsize on
sparc64 and I was finally able to successfully mount a partition.
With 4K there are zero's in the root tree node header, because it's
extent's location on disk is at a sub-PAGE_SIZE multiple and the
extent code doesn't handle that.
You really need to start val...
| Feb 12, 5:55 pm 2008 |
| Chris Mason | Re: BTRFS only works with PAGE_SIZE <= 4K
Grin, I think around v0.4 I grabbed a ppc box for a day and got things
working. There has been some churn since then...
My first prio is the newest set of disk format changes, and then I'll sit down
Many thanks, I'll try these out here and push them into the tree.
-chris
-
| Feb 12, 6:03 pm 2008 |
| David Miller | CRC32C big endian bugs...
The CRC32C implementation in the btrfs progs is different from the one
in the kernel, so obviously nothing can possibly work on big-endian.
This is getting less and less fun by the minute, I simply wanted to
test btrfs on Niagara :-/
Here is a patch to fix that:
--- vanilla/btrfs-progs-0.12/crc32c.c 2008-02-06 08:37:45.000000000 -0800
+++ btrfs-progs-0.12/crc32c.c 2008-02-12 01:19:33.000000000 -0800
@@ -91,13 +91,11 @@ static const u32 crc32c_table[256] = {
* crc using table.
*/
-u3...
| Feb 12, 5:23 am 2008 |
| David Miller | BTRFS partition usage...
Filesystems like ext2 put their superblock 1 block into the partition
in order to avoid overwriting disk labels and other uglies. UFS does
this too, as do several others. One of the few exceptions I've been
able to find is XFS.
This is a real issue on sparc where the default sun disk labels
created use an initial partition where block zero aliases the disk
label. It took me a few iterations before I figured out why every
btrfs make would zero out my disk label :-/
-
| Feb 12, 3:21 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: David Miller <davem@davemloft.net>
Actually it seems this is only a problem with mkfs.btrfs, it clears
out the first 64 4K chunks of the disk for whatever reason.
The following patch cures the disk label spamming problem for me:
--- vanilla/btrfs-progs-0.12/mkfs.c 2008-02-06 08:37:45.000000000 -0800
+++ btrfs-progs-0.12/mkfs.c 2008-02-12 00:07:43.000000000 -0800
@@ -210,7 +210,8 @@ int main(int ac, char **av)
exit(1);
}
memset(buf, 0, sectorsize);
- for(i = 0; i < 64; i...
| Feb 12, 4:11 am 2008 |
| Chris Mason | Re: BTRFS partition usage...
It is a good idea to remove supers from other filesystems. I also need to add
zeroing at the end of the device as well.
Looks like I misread the e2fs zeroing code. It zeros the whole external log
device, and I assumed it also zero'd out the start of the main FS.
So, if Btrfs starts zeroing at 1k, will that be acceptable for you?
-chris
-
| Feb 12, 9:49 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Chris Mason <chris.mason@oracle.com>
Sure.
-
| Feb 12, 4:50 pm 2008 |
| Jan Engelhardt | Re: BTRFS partition usage...
Something looks wrong here. Why would btrfs need to zero at all?
Superblock at 0, and done. Just like xfs.
(Yes, I had xfs on sparc before, so it's not like you NEED the
whitespace at the start of a partition.)
-
| Feb 12, 10:00 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Jan Engelhardt <jengelh@computergmbh.de>
So that existing superblocks on the partition won't
be interpreted as correct by other filesystems. It's
No, we won't do stupid things like that and make an entire
cylinder of our disks unusable. See my other reply.
-
| Feb 12, 7:28 pm 2008 |
| David Miller | Re: BTRFS partition usage...
From: Jan Engelhardt <jengelh@computergmbh.de>
You actully do unless you want to lose significant chunks of your disk
space.
The Sun disk label only allows you to specify the start of a partition
in cylinders, so if you want to use a filesystem like XFS you have to
start the partition on cylinder 1 which can be many blocks into the
disk. That entire first cylinder is completely wasted.
What XFS does by putting the superblock at zero is simply does not
take these kinds of issues into con...
| Feb 12, 7:26 pm 2008 |
| Jan Engelhardt | Re: BTRFS partition usage...
Ok you do have a point there. The GPT users win of course, since it
uses LBA, not cyls, so the number of lost bytes is generally below
a cyl.
On the other hand, the H and S of CHS could be lowered and S increased,
e.g. divide H by 2, divide S by 2, multiply S by 4. This gives a finer
Well it was designed for a different system initially with
a different style of booting.
-
| Feb 12, 7:39 pm 2008 |
| Chris Mason | Re: BTRFS partition usage...
I've had requests to move the super down to 64k to make room for bootloaders,
which may not matter for sparc, but I don't really plan on different
locations for different arches.
4k aligned is important given that sector sizes are growing.
-chris
-
| Feb 12, 10:08 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Chris Mason <chris.mason@oracle.com>
The Sun disk label sits in the first 512 bytes and the boot loader
block sits in the second 512 bytes.
I think leaving even more space is a good idea for several reasons.
-
| Feb 12, 7:33 pm 2008 |
| Jan Engelhardt | Re: BTRFS partition usage...
In x86, there is even more space for a bootloader (some 28k or so)
even if your partition table is as closely packed as possible,
from 0 to 7e00 IIRC.
For sparc you could have something like
startlba endlba type
sda1 0 2 1 Boot
sda2 2 58 3 Whole disk
sda3 58 90000 83 Linux
and slap the bootloader into "MBR", just like on x86.
Or I am missing something..
-
| Feb 12, 10:21 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Jan Engelhardt <jengelh@computergmbh.de>
You cannot specify partitions on LBA boundaries on sparc, the Sun disk
label specifies the partition start points in cylinders.
-
| Feb 12, 7:34 pm 2008 |
| Chris Mason | Re: BTRFS partition usage...
It was a request from hpa, and he clearly had something in mind. He kindly
offered to review the disk format for bootloaders and other lower level
issues but I asked him to wait until I firm it up a bit.
From my point of view, 0 is a bad idea because it is very likely to conflict
with other things. There are lots of things in the FS that need deep
thought,and the perfect system to fully use the first 64k of a 1TB filesystem
isn't quite at the top of my list right now ;)
Regardless of off...
| Feb 12, 10:35 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Chris Mason <chris.mason@oracle.com>
Starting at 0 is a bad idea because otherwise you'll waste
significant chunks of your disk on Sparc because of reasons
I've outlined in other replies.
What XFS does is really unfortunate, let's learn from it's
mistake.
-
| Feb 12, 7:35 pm 2008 |
| Jan Engelhardt | Re: BTRFS partition usage...
>
I still don't like the idea of btrfs trying to be smarter than a user
who can partition up his system according to
(a) his likes
(b) system or hardware requirements or recommendations
to align the superblock to a specific location.
1MB alignment does not always mean 1MB alignment.
Sector 1 begins at 0x7e00 on x86.
And with the maximum CHS geometry (255/63), partitions begin
at 0x7e00+n*8225280 bytes, so the SB is unlikely to ever be on
a 1048576 boundary.
-
| Feb 12, 11:04 am 2008 |
| David Miller | Re: BTRFS partition usage...
From: Jan Engelhardt <jengelh@computergmbh.de>
All of your beliefs are unfortunately without the understanding
of restrictions that exist in several partition layouts such
as the Sun disk label one.
You have to start the superblock somewhere other than zero or
else you lose a huge chunk of your disk, and furthermore a
zero based partition is what all of the Sun disk label
creating programs make by default.
"I make a default disk label, I put btrfs or XFS on there, my disk
label is gone...
| Feb 12, 7:38 pm 2008 |
| Jan Engelhardt | Re: BTRFS partition usage...
x86 MSDOS partition table layout starts counting with sector 1, which
is (not so intuitively) starting at 0x7e00 (and there's no sector 0,
probably for safety). Well, each ptable format with its own quirks.
-
| Feb 12, 7:42 pm 2008 |
| Chris Mason | Re: BTRFS partition usage...
Will all the users in the world who think about super block location when they
partition their disks please raise their hands?
The location of the super block needs to be very simple in order for mount and
friends to find and detect it. It needs a simple algorithm to try multiple
locations in case a given copy of the super is corrupt.
Design in this case is a bunch of compromises around other users of the
hardware, ease of programming, and the benefits in performance or usability
IO is ...
| Feb 12, 12:17 pm 2008 |
| David Miller | Re: [ANNOUNCE] Btrfs v0.12 released
From: Chris Mason <chris.mason@oracle.com>
This is really problematic, because you've got these things called
"btrfs_item_ptr()" which really isn't a pointer, it's a relative
'unsigned long' offset cast to a pointer. The source of this
seems to be btrfs_leaf_data().
And then those things get passed down into the SETGET functions!
Then deeper down we have terribly inconsistent things like
btrfs_item_nr_offset() and
btrfs_item_offset_nr().
Sigh... I'll see what I can do.
-
| Feb 12, 2:43 am 2008 |
| Chris Mason | Re: [ANNOUNCE] Btrfs v0.12 released
Explaining it won't make it pretty, but at least I can tell you what the code
does.
This is all part of the btrfs code that supports tree block sizes larger than
a page. The extent_buffer code (extent_io.c) provides a read/write api into
an extent_buffer based on offsets from the start of the multi-page buffer.
That's where the relative unsigned long comes from.
The part where I cast it to pointers is me trying to maintain type checking
throughout the code. The pointers themselves are u...
| Feb 12, 9:43 am 2008 |
| FUJITA Tomonori | Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS
On Fri, 8 Feb 2008 23:46:19 -0800
I guess I can put the blame for this on Jens' commit (45711f1a) ;)
On a serious note, it seems that two scatter lists per request leaded
to this bug. Can the scatter list in struct ub_request be removed?
-
| Feb 11, 9:46 pm 2008 |
| Pete Zaitcev | Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS
Good question. It's an eyesore to be sure. The duplication exists
for the sake of retries combined with the separation of requests
from commands.
Please bear with me, if you're curious: commands can be launched
without requests (at probe time, for instance, or when sense is
requested). So, they need an s/g table. But then, the lifetime of
a request is greater than than of a command, in case of a retry
especially. Therefore a request needs the s/g table too.
So, one way to kill this duplication...
| Feb 11, 10:12 pm 2008 |
| previous day | today | next day |
|---|---|---|
| February 11, 2008 | February 12, 2008 | February 13, 2008 |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Brice Goglin | Re: Linux 2.6.21-rc2 |
| Christian Volkmann | 2.6.23-rc6: usb 1-1: device not accepting address 2, error -62 |
git: | |
| Jon Smirl | Re: VCS comparison table |
| Nicolas Pitre | Re: git to libgit2 code relicensing |
| Giuseppe Bilotta | [PATCHv3 0/4] gitweb: remote heads feature |
| Mark Burton | Git commit won't add an untracked file given on the command line |
| Nick Guenther | Re: Real men don't attack straw men |
| Tanvir | Re: Adobe Flash on OpenBSD |
| Marius ROMAN | 1440x900 resolution problem |
| Gilles Chehade | Re: wpi (4) and 4.4 |
| Johann Baudy | Re: [PATCH] Packet socket: mmapped IO: PACKET_TX_RING |
| Volker Armin Hemmann | build error with 2.6.27.6+reiser4+ehci-hub patch. ERROR: "mii_ethtool_gset" [drive... |
| Patrick Ohly | [RFC PATCH 00/13] hardware time stamping + igb example implementation |
| Laszlo Attila Toth | [PATCHv7 3/5] Interface group: core (netlink) part |
