Re: Is this normal? Should I use scrub?

2015-04-02 Thread Hugo Mills
On Thu, Apr 02, 2015 at 09:58:39AM +, Andy Smith wrote: Hi Hugo, Thanks for your help. Makes a change from you answering my questions. :) On Wed, Apr 01, 2015 at 03:42:02PM +, Hugo Mills wrote: On Wed, Apr 01, 2015 at 03:11:14PM +, Andy Smith wrote: Should I run a scrub

Re: Btrfs hangs 3.19-10

2015-04-02 Thread Hugo Mills
+0x1c0/0x1c0 -- Hugo Mills | Great oxymorons of the world, no. 10: hugo@... carfax.org.uk | Business Ethics http://carfax.org.uk/ | PGP: 65E74AC0 | signature.asc Description: Digital signature

Re: How to avoid certain file being defragmented?

2015-04-01 Thread Hugo Mills
a file and a loopback device may be more useful. Hugo. -- Hugo Mills | I get nervous when I see words like 'mayhaps' in a hugo@... carfax.org.uk | novel, because I fear that just round the corner is http://carfax.org.uk/ | lurking 'forsooth' PGP: 65E74AC0

Re: Is this normal? Should I use scrub?

2015-04-01 Thread Hugo Mills
far will be just the pieces that the FS has tried to read, and where, as a result, it's been able to detect the out-of-date data. A scrub will check and fix everything. Hugo. -- Hugo Mills | My karma has run over my dogma. hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP

Re: btrfs balance fails with no space errors (despite having plenty)

2015-03-24 Thread Hugo Mills
not been fixed yet, unfortunately. The only known solution to date is, as you've found, remaking the FS from scratch and restoring from backups. Sorry to be the bearer of bad news. Hugo. -- Hugo Mills | Geek, n.: hugo@... carfax.org.uk | Circus sideshow performer specialising

Re: btrfs dedup - available or experimental? Or yet to be?

2015-03-23 Thread Hugo Mills
is reported as working. Is there (or will there be,) a bad penalty of fragmentation? With duperemove, it operates on an extent scale, not at the level of blocks, so the fragmentation isn't so bad. Hugo. -- Hugo Mills | ©1973 Unclear Research Ltd hugo@... carfax.org.uk | http

Re: btrfs fstrim status (RAID5)

2015-03-22 Thread Hugo Mills
repo. If you're not using parity RAID, then the last few kernels have been OK, but keeping up with the latest version is still a reasonably good idea. Hugo. -- Hugo Mills | You know, the British have always been nice to mad hugo@... carfax.org.uk | people. http://carfax.org.uk

Re: New tool to recursive compress / decompress of files

2015-03-21 Thread Hugo Mills
it few hours ago, but I would like to hear any feedback, whether there would be any use for such a tool, feature requests etc :) -- Hugo Mills | You shouldn't anthropomorphise computers. They hugo@... carfax.org.uk | really don't like that. http://carfax.org.uk/ | PGP: 65E74AC0

Re: syntax for deleting subvolumes?

2015-03-18 Thread Hugo Mills
of some pieces of the filesystem. Hugo. -- Hugo Mills | There's a Martian war machine outside -- they want hugo@... carfax.org.uk | to talk to you about a cure for the common cold. http://carfax.org.uk/ | PGP: 65E74AC0 | Stephen Franklin, Babylon

Re: syntax for deleting subvolumes?

2015-03-18 Thread Hugo Mills
subvolume management operations (and nothing else) through the top-level mount at /media/btrfs. Hugo. -- Hugo Mills | There's a Martian war machine outside -- they want hugo@... carfax.org.uk | to talk to you about a cure for the common cold. http://carfax.org.uk/ | PGP: 65E74AC0

Re: How to compile btrfs-progs?

2015-02-12 Thread Hugo Mills
/Btrfs_source_repositories#Dependencies [2] https://btrfs.wiki.kernel.org/index.php/Getting_started#Compiling_the_userspace_utilities -- Hugo Mills | There's a Martian war machine outside -- they want hugo@... carfax.org.uk | to talk to you about a cure for the common cold. http://carfax.org.uk

Re: btrfs raid5 with mixed disks

2015-02-09 Thread Hugo Mills
with future expansion of the array? With raid1 mode btrfrs is reasonably smart about mixed disk sizes, and you usually end up with half of the total space available. http://carfax.org.uk/btrfs-usage/ may be useful here. Hugo. -- Hugo Mills | It was half way to Rivendell when

Re: [PATCH 1/2] btrfs-progs: Make option parsing more robust to code modifications

2015-01-28 Thread Hugo Mills
On Wed, Jan 28, 2015 at 09:15:42AM +0800, Qu Wenruo wrote: Original Message Subject: [PATCH 1/2] btrfs-progs: Make option parsing more robust to code modifications From: Hugo Mills h...@carfax.org.uk To: linux-btrfs@vger.kernel.org, dste...@suse.cz Date: 2015年01月27日 23:05

[PATCH 2/2] btrfs-progs: Add --readonly flag

2015-01-27 Thread Hugo Mills
-by: Hugo Mills h...@carfax.org.uk --- cmds-check.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/cmds-check.c b/cmds-check.c index a1226c6..d4d2e73 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -8403,11 +8403,13 @@ out: return bad_roots; } -enum

[PATCH 1/2] btrfs-progs: Make option parsing more robust to code modifications

2015-01-27 Thread Hugo Mills
which cannot be a char (and hence a short option), and simply switch on those within the case statement. Signed-off-by: Hugo Mills h...@carfax.org.uk --- cmds-check.c | 49 +++-- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/cmds

Re: RAID1 migrate to bigger disks

2015-01-24 Thread Hugo Mills
/dev/sdb3 /dev/sdd3 /mountpoint btrfs fi resize 4:max /mountpoint The 3 and 4 in the resize commands should be the devid of the newly-added device. Hugo. -- Hugo Mills | I'll take your bet, but make it ten thousand francs. hugo@... carfax.org.uk | I'm only a _poor_ corrupt

Re: Recovery Operation With Multiple Devices

2015-01-23 Thread Hugo Mills
and snapshots. You can then use -r to select the tree to restore. Can send / receive do this perhaps ? Yes, but only if you can mount the FS. Hugo. -- Hugo Mills | I know of three kinds: hot, cool, and hugo@... carfax.org.uk | what-time-does-the-tune-start? http://carfax.org.uk

Re: Recovery options for FS forced readonly due to 3.17 snapshot bug

2015-01-20 Thread Hugo Mills
- ultimately the write doesn't get committed the FS gets forced readonly. Thanks in advance ! -- Hugo Mills | My code is never released, it escapes from the git hugo@... carfax.org.uk | repo and kills a few beta testers on the way out http://carfax.org.uk/ | PGP: 65E74AC0

Re: Backup: Lost local reference

2015-01-17 Thread Hugo Mills
:-(, all of the snapshot were deleted because of a regex problem in a script I ran. -- Hugo Mills | Debugging is like hitting yourself in the head with hugo@... carfax.org.uk | hammer: it feels so good when you find the bug, and http://carfax.org.uk/ | you're allowed to stop debugging

Stuck balance, 3.18.0

2015-01-12 Thread Hugo Mills
I've just added a new disk to my main storage filesystem. Running the obligatory balance to spread the data out, it's managed about 14% of the job, and then has gone into some kind of tight loop. No chunks have been found or balanced in the last 2 hours, and one kworker thread is pegged at

Re: Stuck balance, 3.18.0

2015-01-12 Thread Hugo Mills
On Mon, Jan 12, 2015 at 11:21:58AM +, Hugo Mills wrote: I've just added a new disk to my main storage filesystem. Running the obligatory balance to spread the data out, it's managed about 14% of the job, and then has gone into some kind of tight loop. No chunks have been found

Re: Stuck balance, 3.18.0

2015-01-12 Thread Hugo Mills
On Mon, Jan 12, 2015 at 01:36:27PM +, Holger Hoffstätte wrote: On Mon, 12 Jan 2015 12:27:12 +, Hugo Mills wrote: On Mon, Jan 12, 2015 at 11:21:58AM +, Hugo Mills wrote: I've just added a new disk to my main storage filesystem. Running the obligatory balance to spread

Re: BTRFS_IOC_TREE_SEARCH ioctl

2015-01-05 Thread Hugo Mills
(such as it is) to implement this, as it's a (moderately rare) repeat request. Hugo. -- Hugo Mills | Klytus, I'm bored. What plaything can you offer me hugo@... carfax.org.uk | today? http://carfax.org.uk/ | PGP: 65E74AC0 | Ming the Merciless, Flash Gordon

Re: BTRFS_IOC_TREE_SEARCH ioctl

2015-01-05 Thread Hugo Mills
On Mon, Jan 05, 2015 at 08:11:56PM +0100, Lennart Poettering wrote: On Mon, 05.01.15 18:22, Hugo Mills (h...@carfax.org.uk) wrote: On Mon, Jan 05, 2015 at 06:15:12PM +0100, Lennart Poettering wrote: Heya, I recently added some btrfs magic to systemd's machinectl/nspawn tool. More

Re: Balance is inexplicably dieing (repeatedly)

2015-01-05 Thread Hugo Mills
extents -- Hugo Mills | What do you give the man who has everything? hugo@... carfax.org.uk | Penicillin is a good start... http://carfax.org.uk/ | PGP: 65E74AC0 | signature.asc Description: Digital signature

Re: I need to P. are we almost there yet?

2015-01-03 Thread Hugo Mills
to keep my data eggs from all being in the same filesystem basket. -- Hugo Mills | If it's December 1941 in Casablanca, what time is it hugo@... carfax.org.uk | in New York? http://carfax.org.uk/ | PGP: 65E74AC0 | Rick Blaine, Casablanca

Re: Btrfs progs release 3.18

2014-12-30 Thread Hugo Mills
Unallocated: 2.38TiB /dev/sdb4, ID: 2 Device size: 2.63TiB Data,RAID1:252.00GiB Metadata,RAID1: 3.00GiB System,RAID1:8.00MiB Unallocated: 2.38TiB -- Hugo Mills | The trouble with you, Ibid, is you

Re: I need to P. are we almost there yet?

2014-12-29 Thread Hugo Mills
losing two devices, though, even if the remaining data is actually enough to reconstruct the FS. Hugo. -- Hugo Mills | I can resist everything except temptation hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: 65E74AC0 | signature.asc Description: Digital signature

Re: I need to P. are we almost there yet?

2014-12-29 Thread Hugo Mills
of the failure modes beyond the guarantee. Hugo. On Mon, Dec 29, 2014 at 1:04 PM, Hugo Mills h...@carfax.org.uk wrote: On Mon, Dec 29, 2014 at 01:00:05PM -0600, sys.syphus wrote: oh, and sorry to bump myself. but is raid10 *ever* more redundant in btrfs-speak than raid1? I currently use raid1

Re: BTRFS free space handling still needs more work: Hangs again

2014-12-27 Thread Hugo Mills
output here, or post to bugzilla.kernel.org That's probably going to give enough information to the developers to work out where the lockup is happening, and is clearly the way forward here. Hugo. -- Hugo Mills | w.w.w. -- England's batting scorecard hugo@... carfax.org.uk

Re: BTRFS free space handling still needs more work: Hangs again

2014-12-27 Thread Hugo Mills
or something equally dumb. Userspace doesn't as far as I know, get to make that decision. I've just read the fallocate(2) man page, and it says nothing at all about the contiguity of the extent(s) storage allocated by the call. Hugo. [snip] -- Hugo Mills | O tempura! O moresushi

Re: BTRFS free space handling still needs more work: Hangs again

2014-12-27 Thread Hugo Mills
On Sat, Dec 27, 2014 at 01:28:46PM -0500, Zygo Blaxell wrote: On Sat, Dec 27, 2014 at 09:30:43AM +, Hugo Mills wrote: On Sat, Dec 27, 2014 at 10:01:17AM +0100, Martin Steigerwald wrote: Am Freitag, 26. Dezember 2014, 14:48:38 schrieb Robert White: On 12/26/2014 05:37 AM, Martin

Re: making btrfs on raw images

2014-12-24 Thread Hugo Mills
drawbacks? No drawbacks. I've used this method for testing purposes. Obviously, you'll have to set up the loop devices to mount the FS, but mkfs shouldn't have any problems. Hugo. -- Hugo Mills | 2 + 2 = 5, for sufficiently large values of 2. hugo@... carfax.org.uk | http

Re: Uncorrectable errors on RAID-1?

2014-12-21 Thread Hugo Mills
, and checking your logs for SATA errors and similar problems. Hugo. [snip] -- Hugo Mills | I must be musical: I've got *loads* of CDs hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: 65E74AC0 | Fran, Black Books signature.asc

Terminology (was Re: [PATCH 6/7] Print the summary)

2014-12-18 Thread Hugo Mills
On Wed, Dec 17, 2014 at 09:44:43PM -0800, Robert White wrote: On 12/16/2014 01:05 AM, Hugo Mills wrote: On Mon, Dec 15, 2014 at 07:47:06PM -0800, Robert White wrote: I prefer slice, not that I am totally happy with that word either. But by the time you get through loopback devices, memory map

Re: Extra info

2014-12-18 Thread Hugo Mills
Label: none uuid: 752ed11b-defc-4717-b4c9-a9e08ad64ba6 Total devices 1 FS bytes used 404.74GB devid1 size 410.50GB used 410.50GB path /dev/md3 Regards, Daniele -- Hugo Mills | Python is executable pseudocode; perl is executable hugo@... carfax.org.uk | line

Re: [PATCH 6/7] Print the summary

2014-12-16 Thread Hugo Mills
the latter carries almost as much problematic baggage as the former. -- Hugo Mills | Great films about cricket: 200/1: A Pace Odyssey hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: 65E74AC0 | signature.asc Description: Digital signature

Re: mkfs.btrfs limits odd [and maybe a failed phantom device?]

2014-12-12 Thread Hugo Mills
.) The parity computation on a single value is just nutty waste of time though. Backing it out when the array is degraded is double-nuts. Maybe everybody just decided it was too crazy to consider for the CPU time penalty...? So yea, semantics... apparently... -- Hugo Mills | There's

Re: btrfs fi df output unknown

2014-12-12 Thread Hugo Mills
Data, RAID1: total=314.00GiB, used=313.55GiB System, RAID1: total=32.00MiB, used=64.00KiB Metadata, RAID1: total=1.00GiB, used=422.45MiB unknown, single: total=144.00MiB, used=0.00 -- Hugo Mills | I am but mad north-north-west: when the wind is hugo@... carfax.org.uk | southerly, I

Re: RAID0 extent sizes?

2014-12-12 Thread Hugo Mills
device, and so on. The minimum stripe width (e.g. number of devices) is 2 for RAID-0, 4 for RAID-10, 2 for RAID-5 and 3 for RAID-6. Hugo. -- Hugo Mills | I get nervous when I see words like 'mayhaps' in a hugo@... carfax.org.uk | novel, because I fear that just round

Re: RAID0 extent sizes?

2014-12-12 Thread Hugo Mills
On Fri, Dec 12, 2014 at 03:25:19PM -0800, Robert White wrote: On 12/12/2014 02:59 PM, Hugo Mills wrote: On Fri, Dec 12, 2014 at 02:54:24PM -0800, Robert White wrote: I've seen it mentioned here that generally data extents are 1G and metadata extents are 256M. Is that per-drive or per-stripe

Re: Why is the actual disk usage of btrfs considered unknowable?

2014-12-07 Thread Hugo Mills
to be inaccurate, and whatever way round we show it, someone will complain. Hugo. -- Hugo Mills | My doctor tells me that I have a malformed hugo@... carfax.org.uk | public-duty gland, and a natural deficiency in moral http://carfax.org.uk/ | fibre. PGP: 65E74AC0

Re: [PATCH] Btrfs: fix fs corruption on transaction abort if device supports discard

2014-12-06 Thread Hugo Mills
, and it should have been untouched, because it was marked as dirty in the fs_info-pinned_extents tree, and therefore used by the trees that the last committed superblock points to. Wow. Nice one, Filipe. Hugo. -- Hugo Mills | Startle, startle, little twink. How I

Re: Moving an entire subvol?

2014-12-03 Thread Hugo Mills
On Wed, Dec 03, 2014 at 08:02:31AM +0530, Shriramana Sharma wrote: On Tue, Dec 2, 2014 at 2:04 PM, Hugo Mills h...@carfax.org.uk wrote: Is that correct: what btr sub list shows as top level is indeed the parent subvolume? No, it's the top-level subvolume. (See my earlier mail about

Re: Moving an entire subvol?

2014-12-02 Thread Hugo Mills
that nesting subvolumes is generally more awkward to manage, and that putting files in the top-level subvol can't do what most people want to do with it. Hence the recommended subvol management layout at [1]. Hugo. [1] https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Subvolumes -- Hugo

Re: Possible to undo subvol delete?

2014-12-02 Thread Hugo Mills
to break scripts? Any script which relies on being able to delete subvolumes in unattended operation will now require modification to use -f. Hugo. -- Hugo Mills | Unix: For controlling fungal diseases in crops hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: 65E74AC0

Re: root subvol id is 0 or 5?

2014-11-30 Thread Hugo Mills
the default subvol, you still can't delete it. Hugo. -- Hugo Mills | People are too unreliable to be replaced by hugo@... carfax.org.uk | machines. http://carfax.org.uk/ | PGP: 65E74AC0 | Nathan Spring, Star Cops signature.asc Description

Re: root subvol id is 0 or 5?

2014-11-30 Thread Hugo Mills
On Sun, Nov 30, 2014 at 07:08:51PM +0530, Shriramana Sharma wrote: On Sun, Nov 30, 2014 at 5:29 PM, Hugo Mills h...@carfax.org.uk wrote: In the data structures on disk, it's 5. The kernel aliases 0 to mean subvolid 5. So why 5 and not just 0 which seems a logical choice? On top

Re: Moving contents from one subvol to another

2014-11-29 Thread Hugo Mills
set to a single value by default (e.g. through a shall alias). Hugo. -- Hugo Mills | I will not be pushed, filed, stamped, indexed, hugo@... carfax.org.uk | briefed, debriefed or numbered. http://carfax.org.uk/ | My life is my own. PGP: 65E74AC0

Re: [RFC PATCH] Btrfs: add sha256 checksum option

2014-11-24 Thread Hugo Mills
could see this possibly being useful for having fewer false positives when using the inbuilt checksums for purposes of dedup. Hugo. -- Hugo Mills | That's not rain, that's a lake with slots in it hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: 65E74AC0

Re: Best GIT repository(s) for preparing patches?

2014-11-23 Thread Hugo Mills
, for example :) ). For userspace, probably the latest -rc tag from kdave's repo. See https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http

Re: Fixing Btrfs Filesystem Full Problems typo?

2014-11-22 Thread Hugo Mills
under some circumstances. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- And what rough beast, its hour come round at last / slouches --- towards Bethlehem

Re: btrfs send erroring...

2014-11-20 Thread Hugo Mills
/biggie/BACKUP/, is there a different way I should go about sending an entire disk? Thanks! -Ken -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- ©1973 Unclear Research Ltd

Re: btrfs filesystem show _exact_ freaking size?

2014-11-18 Thread Hugo Mills
the partition, and then resizing the FS back up to fit the partition exactly (with btrfs fi resize n:max). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Stick them

Re: Two persistent problems

2014-11-17 Thread Hugo Mills
On Fri, Nov 14, 2014 at 05:00:26PM -0500, Josef Bacik wrote: On 11/14/2014 04:51 PM, Hugo Mills wrote: Chris, Josef, anyone else who's interested, On IRC, I've been seeing reports of two persistent unsolved problems. Neither is showing up very often, but both have turned up often

Re: Two persistent problems

2014-11-17 Thread Hugo Mills
On Mon, Nov 17, 2014 at 11:59:48AM +0100, Konstantin wrote: Josef Bacik wrote on 14.11.2014 at 23:00: On 11/14/2014 04:51 PM, Hugo Mills wrote: [snip] Problem 2: Unexplained zeroes Failure to mount. Transid failure, expected xyz, have 0. Chris looked at an early one of these (for Ke

Two persistent problems

2014-11-14 Thread Hugo Mills
. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Great films about cricket: Forrest Stump --- signature.asc Description: Digital signature

Re: btrfs balance fails with no space errors (despite having plenty)

2014-11-13 Thread Hugo Mills
-- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Strive for apathy! --- signature.asc Description: Digital signature

Re: Compatibility matrix kernel/tools

2014-11-05 Thread Hugo Mills
not support newer kernel features -- but that will simply mean you can't access the feature, not that anything will be broken. If you're doing recovery work (btrfs check and friends) then using the latest released version of the tools is strongly recommended. Hugo. -- === Hugo Mills: hugo

Re: Kernel 3.17.2 and RO snapshots

2014-11-02 Thread Hugo Mills
bring the system down if you access the broken data. But you're safe with 3.17.2, so it's a moot point for you right now. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk

Re: which subvolume is mounted?

2014-11-01 Thread Hugo Mills
1.62GiB devid1 size 6.52GiB used 2.24GiB path /dev/sda3 Btrfs v3.12 # btrfs fi df / Data, single: total=1.98GiB, used=1.58GiB System, single: total=4.00MiB, used=16.00KiB Metadata, single: total=264.00MiB, used=36.03MiB -- === Hugo Mills: hugo@... carfax.org.uk

Re: which subvolume is mounted?

2014-11-01 Thread Hugo Mills
used 1.62GiB devid1 size 6.52GiB used 2.24GiB path /dev/sda3 Btrfs v3.12 # btrfs fi df / Data, single: total=1.98GiB, used=1.58GiB System, single: total=4.00MiB, used=16.00KiB Metadata, single: total=264.00MiB, used=36.03MiB -- === Hugo Mills: hugo@... carfax.org.uk

Re: request for info on the list of parameters to tweak for PCIe SSDs

2014-11-01 Thread Hugo Mills
, but will still help to keep the number of extents down. That will reduce the metadata overhead. That's about all there is for btrfs-specific options, I think. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net

Re: suspicious number of devices: 72057594037927936

2014-10-27 Thread Hugo Mills
, I haven't experienced any. If you make read-only snapshots, there's a good chance of metadata corruption. It's fixed in 3.17.2. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk

Re: Uh, 1COW?... what happens when someone does this...

2014-10-22 Thread Hugo Mills
somewhere. I wouldn't put it in those words, but yes, a single CoW operation occurs on writes to data with nodatacow set. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- There's

Re: NOCOW and Swap Files?

2014-10-22 Thread Hugo Mills
at all, so you can't get a list of blocks on an underlying device because there isn't one. Indirecting the accesses through the filesystem, however, allows us to side-step btrfs's problems with part (b) above, and in theory gives us swapfile capability. Hugo. -- === Hugo Mills: hugo

Re: NOCOW and Swap Files?

2014-10-22 Thread Hugo Mills
On Wed, Oct 22, 2014 at 01:39:58PM -0700, Robert White wrote: On 10/22/2014 01:25 PM, Hugo Mills wrote: The new code is the swap-on-NFS infrastructure, which indirects swapfile accesses through the filesystem code. The reason you have to do that with NFS is because NFS doesn't expose

Re: unexplainable corruptions 3.17.0

2014-10-17 Thread Hugo Mills
the file will only read one of the copies of any given block (so if that's good and the other copy is bad, it won't fix anything). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk

Re: What is the vision for btrfs fs repair?

2014-10-09 Thread Hugo Mills
-it fixes yet, but if so, that's the first /I/ remember reading of it. Other than that detail, what you posted matches my knowledge and experience, such as it may be as a non-dev list regular, as well. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key

Re: What is the vision for btrfs fs repair?

2014-10-09 Thread Hugo Mills
testing to see how 'read-only' mounting a btrfs filesystem really is. If the FS is RO, then yes, it won't fix things. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Great

Re: Identify mounted subvolume

2014-10-07 Thread Hugo Mills
, but I've just checked, and it doesn't seem to have the subvol in it on my server (3.16.2). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Unix: For controlling fungal diseases

Re: Fwd: Deleting a Subvol from a Cancelled Btrfs-Send

2014-10-02 Thread Hugo Mills
Is there anyway to delete this partial subvol? Thanks, Justin -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- All hope abandon, Ye who press Enter here. --- signature.asc

Re: FIBMAP unsupported

2014-10-02 Thread Hugo Mills
. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- ... one ping(1) to rule them all, and in the --- darkness bind(2) them

Re: BTRFS backup questions

2014-09-27 Thread Hugo Mills
in participating, or even just using it, please let me know. Thanks to everyone who has worked on BTRFS so far ;-) James -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- How do you

Re: BTRFS backup questions

2014-09-27 Thread Hugo Mills
On Sat, Sep 27, 2014 at 06:33:58PM +0200, James Pharaoh wrote: On 27/09/14 18:17, Hugo Mills wrote: On Sat, Sep 27, 2014 at 05:39:07PM +0200, James Pharaoh wrote: 2. Duplicating NOCOW files This is obviously possible, since it takes place when you make a snapshot. So why can't I create

Re: lvm thin provisioning snapshots and btrfs

2014-09-24 Thread Hugo Mills
taking action on the basis of information in this e-mail or any attachments. The DRW Companies make no representations that this e-mail or any attachments are free of computer viruses or other defects. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0

Re: btrfs receive: could not find parent subvolume

2014-09-18 Thread Hugo Mills
. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- I will not be pushed, filed, stamped, indexed, briefed, --- debriefed or numbered. My life is my own

Re: [UI RFC][PATCH] btrfs-progs: add options to tune units for fi df output

2014-09-15 Thread Hugo Mills
is KiB (upper case), SI is kB (lower case). Other than that, the UI looks pretty comfortable to me. Reviewed-by: Hugo Mills h...@carfax.org.uk --- I tried to make the command line UI rich enough to address current and future needs, I'm open to tweaks, rewording etc. The patch is based

Re: RAID1 failure and recovery

2014-09-13 Thread Hugo Mills
On Sun, Sep 14, 2014 at 05:15:08AM +0200, Piotr Pawłow wrote: On 12.09.2014 12:47, Hugo Mills wrote: I've done this before, by accident (pulled the wrong drive, reinserted it). You can fix it by running a scrub on the device (btrfs scrub start /dev/ice, I think). I'd like to remind everyone

Re: RAID1 failure and recovery

2014-09-12 Thread Hugo Mills
in production, is running btrfs on top of mdraid the way to go at this point? Using btrfs native RAID means that you get independent checksums on the two copies, so that where the data differs between the copies, the correct data can be identified. Hugo. -- === Hugo Mills: hugo

Re: No space on empty, degraded raid10

2014-09-11 Thread Hugo Mills
on every disk in the array shouldn't matter. N-way mirroring is in the queue for after RAID5/6 work; ideally, once it is ready, mkfs should default to one copy per disk in the filesystem. Why change the default from 2-copies, which it's been for years? Hugo. -- === Hugo Mills: hugo

Re: No space on empty, degraded raid10

2014-09-11 Thread Hugo Mills
On Thu, Sep 11, 2014 at 08:06:21AM -0400, Austin S Hemmelgarn wrote: On 2014-09-11 07:38, Hugo Mills wrote: On Thu, Sep 11, 2014 at 07:19:00AM -0400, Austin S Hemmelgarn wrote: On 2014-09-11 02:40, Russell Coker wrote: Also it would be nice if there was a N-way mirror option for system data

Re: ENOSPC on mostly empty file system

2014-09-09 Thread Hugo Mills
of them. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- You can get more with a kind word and a two-by-four than you --- can with just a kind word

Re: ENOSPC on mostly empty file system

2014-09-09 Thread Hugo Mills
above will only touch chunks with 5% actual data or less). This is in the FAQ. Hugo. Metadata: total=8.00MB, used=0.00 : total=200.00MB, used=0.00 -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http

Re: Btrfs-progs-3.16: fs metadata is both single and dup?

2014-09-03 Thread Hugo Mills
On Wed, Sep 03, 2014 at 04:53:39AM +, Duncan wrote: Hugo Mills posted on Tue, 02 Sep 2014 13:13:49 +0100 as excerpted: On Tue, Sep 02, 2014 at 12:05:33PM +, Holger Hoffstätte wrote: So where does the confusing initial display come from? [I] don't remember ever seeing

Re: Btrfs-progs-3.16: fs metadata is both single and dup?

2014-09-02 Thread Hugo Mills
about that. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Normaliser unix c'est comme pasteuriser le Camembert --- signature.asc Description: Digital signature

Re: Putting very big and small files in one subvolume?

2014-08-29 Thread Hugo Mills
to calculate the used vs free values for df. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Great films about cricket: Umpire of the Rising Sun --- signature.asc Description

Re: btrfs receive problem on ARM kirkwood NAS with kernel 3.16.0 and btrfs-progs 3.14.2

2014-08-19 Thread Hugo Mills
##_to_cpu(*__tmp); \ + *v = get_unaligned_le##bits(__tmp); \ } while (0) #define TLV_GET_U8(s, attr, v) TLV_GET_INT(s, attr, 8, v) -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http

[PATCH v2] btrfs-progs: Add -R to list UUIDs of original received subvolume

2014-08-13 Thread Hugo Mills
the user to perform that matching correctly. Signed-off-by: Hugo Mills h...@carfax.org.uk --- v1 - v2: Update man page as well. Documentation/btrfs-subvolume.txt | 2 ++ btrfs-list.c | 32 +++- btrfs-list.h | 2 ++ cmds

[PATCH] btrfs-progs: Add -R to list UUIDs of original received subvolume

2014-08-12 Thread Hugo Mills
the user to perform that matching correctly. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs-list.c | 32 +++- btrfs-list.h | 2 ++ cmds-subvolume.c | 6 +- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/btrfs-list.c b/btrfs-list.c

[PATCH] btrfs-progs: Fix spelling in btrfs sub list help

2014-08-12 Thread Hugo Mills
below, not bellow Signed-off-by: Hugo Mills h...@carfax.org.uk --- cmds-subvolume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds-subvolume.c b/cmds-subvolume.c index 5216e53..349d0db 100644 --- a/cmds-subvolume.c +++ b/cmds-subvolume.c @@ -390,7 +390,7 @@ static const

Re: File system stuck in scrub

2014-08-11 Thread Hugo Mills
the machine? Yes. * How can I resume or cancel the scrub? It's probably simply not running -- see above. * Is it more risky to leave the above errors uncorrected, or to run btrfsck with --repair? I would, I think, leave them. Hugo. -- === Hugo Mills: hugo@... carfax.org.uk

Re: [PATCH] Btrfs: fix compressed write corruption on enospc

2014-08-06 Thread Hugo Mills
is to balance the data usage evenly across multiple devices. (Actually, to balance the available space evenly). Also note that the data part isn't tree-structured, so referring to balancing the trees with a -d flag is doubly misleading. :) Hugo. -- === Hugo Mills: hugo@... carfax.org.uk

Re: Stack dumps in use_block_rsv while rebalancing (block rsv returned -28)

2014-08-05 Thread Hugo Mills
to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- UNIX: Italian pen maker

Re: ENOSPC with mkdir and rename

2014-08-04 Thread Hugo Mills
. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- You stay in the theatre because you're afraid of having no --- money? There's irony

Re: ENOSPC with mkdir and rename

2014-08-04 Thread Hugo Mills
On Mon, Aug 04, 2014 at 11:31:57AM +0100, Peter Waller wrote: Thanks Hugo, this is the most informative e-mail yet! (more inline) On 4 August 2014 11:22, Hugo Mills h...@carfax.org.uk wrote: * btrfs fi show - look at the total and used values. If used total, you're OK

Re: ENOSPC with mkdir and rename

2014-08-04 Thread Hugo Mills
. One thing I didn't find any information about is the overhead introduced by mixied-mode. It would be great if you could explain it in a few sentences. I don't know, I'm afraid. I don't think we've got any benchmarks on the scale of the slowdown. Hugo. -- === Hugo Mills: hugo

Re: ENOSPC with mkdir and rename

2014-08-04 Thread Hugo Mills
5, 10, 20, 50, 80. Hugo. -- To unsubscribe from this list: send the line unsubscribe linux-btrfs in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net

btrfs sub list output

2014-08-04 Thread Hugo Mills
actually doing what the original author intended? If so, what was that intent? Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Summoning his Cosmic Powers, and glowing slightly

Re: [PATCH] Add support to check for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE crap modes

2014-08-01 Thread Hugo Mills
On Thu, Jul 31, 2014 at 09:53:15PM -0400, Nick Krause wrote: On Thu, Jul 31, 2014 at 3:09 PM, Hugo Mills h...@carfax.org.uk wrote: On Thu, Jul 31, 2014 at 01:53:33PM -0400, Nicholas Krause wrote: This adds checks for the stated modes as if they are crap we will return error not supported

<    1   2   3   4   5   6   7   8   9   10   >