linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* (unknown)
@ 2010-07-10  1:46 jck
  0 siblings, 0 replies; 22+ messages in thread
From: jck @ 2010-07-10  1:46 UTC (permalink / raw)
  To: linux-btrfs

Hello,
when i check diskspace usage of a btrfs partition using df i get the
wrong free space, this is expected i think.
However even when i use 'btrfs filesystem df' I get wrong freespace:
Data: total=123.58GB, used=87.31GB
Metadata: total=61.00GB, used=396.29MB
System: total=32.00MB, used=16.00KB

Does this mean that after the 123 GB of 'Data' fills up I wont be able
to add more stuff to the partition?
I'm using btrfs-progs-git (jul 10)

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2012-05-08  0:37 Mrs.Dorothy Peters
  0 siblings, 0 replies; 22+ messages in thread
From: Mrs.Dorothy Peters @ 2012-05-08  0:37 UTC (permalink / raw)



-- 
Hello,

Do you need a loan if yes contact this email address for more
details:mrs.dorothygloblaloanfirm02@hotmail.co.uk






^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2012-05-05 18:59 Mrs Sabah Halif
  0 siblings, 0 replies; 22+ messages in thread
From: Mrs Sabah Halif @ 2012-05-05 18:59 UTC (permalink / raw)




-- 
Good day,my name is Mrs Sabah Halif  i have a business proposal please contact me for details.

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
       [not found] <1330599216.71336.YahooMailNeo@web30703.mail.mud.yahoo.com>
@ 2012-03-01 12:41 ` bella tk
  0 siblings, 0 replies; 22+ messages in thread
From: bella tk @ 2012-03-01 12:41 UTC (permalink / raw)
  To: linux-btrfs, chris.mason



Hi=A0
I want to use btrfs defrag tool but before that i want to know how much=
 the disk is fragmented. I have tried to use filefrag but it gives me F=
IBMAP:invalid argument for many times. I am using e2fsprogs version 1.4=
2 on debian squeeze. Is there another way to find out the level of frag=
mentation on btrfs filesystem?
Thanks in advance

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-10-29 20:38 Kai Moonbourn
  0 siblings, 0 replies; 22+ messages in thread
From: Kai Moonbourn @ 2011-10-29 20:38 UTC (permalink / raw)
  To: linux-btrfs

help

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-09-20 15:24 Ken D'Ambrosio
  0 siblings, 0 replies; 22+ messages in thread
From: Ken D'Ambrosio @ 2011-09-20 15:24 UTC (permalink / raw)
  To: linux-btrfs

Just wondering if/how one goes about getting the btrfs checksum of a given
file.  Is there a way?

Thanks!

-Ken






^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-09-01 11:50 Ivan Piazza
  0 siblings, 0 replies; 22+ messages in thread
From: Ivan Piazza @ 2011-09-01 11:50 UTC (permalink / raw)
  To: linux-btrfs

unscribe linux-btrfs

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-07-01 16:30 Edward Goggin
  0 siblings, 0 replies; 22+ messages in thread
From: Edward Goggin @ 2011-07-01 16:30 UTC (permalink / raw)
  To: 'linux-btrfs@vger.kernel.org'

subscribe linux-btrfs

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-03-19 20:22 Kim Leyendecker
  0 siblings, 0 replies; 22+ messages in thread
From: Kim Leyendecker @ 2011-03-19 20:22 UTC (permalink / raw)
  To: linux-btrfs


-- 
Kim Leyendecker (kimleyendecker@hotmail.de)
openSUSE Ambassador
http://www.suseusers.de.vu
powered by openSUSE 11.4 | KDE 4.6 | x86_64 Notebook | usecase: Workstation
openSUSE/Slashdot Profilname: openLHAG (OpenLHAG)
Have you tried SUSE Studio? Need to create a Live CD, an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2011-02-20 12:22 Christian Brunner
  0 siblings, 0 replies; 22+ messages in thread
From: Christian Brunner @ 2011-02-20 12:22 UTC (permalink / raw)
  To: linux-btrfs

subscribe

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-11-12 19:33 hugo
  0 siblings, 0 replies; 22+ messages in thread
From: hugo @ 2010-11-12 19:33 UTC (permalink / raw)


>From 2de353ddda78ef5cbc84e1d3267606bc44e48faa Mon Sep 17 00:00:00 2001
Message-Id: <2de353ddda78ef5cbc84e1d3267606bc44e48faa.1289589812.git.hugo@carfax.org.uk>
From: Hugo Mills <hugo@carfax.org.uk>
Date: Sat, 6 Nov 2010 00:18:12 +0000
Subject: [PATCH] Clean up typography in the man pages.
To: linux-btrfs@vger.kernel.org
Cc: Goffredo Baroncelli <kreijack@libero.it>

The man pages are a bit vague about their use of bold and italic, and
don't lay out the meaning of options for each command very well. This
patch tightens up on the type-styles and layout for the main man pages
(btrfs, btrfsck, mkfs.btrfs).

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 man/btrfs.8.in      |  270 +++++++++++++++++++++++++++++++++-----------------
 man/btrfsck.8.in    |    4 +-
 man/mkfs.btrfs.8.in |   39 ++++----
 3 files changed, 200 insertions(+), 113 deletions(-)

diff --git a/man/btrfs.8.in b/man/btrfs.8.in
index 26ef982..7569a9e 100644
--- a/man/btrfs.8.in
+++ b/man/btrfs.8.in
@@ -1,39 +1,73 @@
+.so an
 .TH BTRFS 8 "" "btrfs" "btrfs"
 .\"
 .\" Man page written by Goffredo Baroncelli <kreijack@inwind.it> (Feb 2010)
+.\" Typography fixed by Hugo Mills <hugo@carfax.org.uk> (Oct 2010)
 .\"
 .SH NAME
 btrfs \- control a btrfs filesystem
 .SH SYNOPSIS
-\fBbtrfs\fP \fBsubvolume snapshot\fP\fI <source> [<dest>/]<name>\fP
+\fBsubvolume snapshot \fI<source> \fR[\fI<dest>\fR] \fI<name>\fR
 .PP
-\fBbtrfs\fP \fBsubvolume delete\fP\fI <subvolume>\fP
+
+.BI "btrfs subvolume delete " <subvolume>
+.PP
+
+.B btrfs subvolume create
+.RI [ <dest> ] " <name>"
 .PP
-\fBbtrfs\fP \fBsubvolume create\fP\fI [<dest>/]<name>\fP
+
+.BI "btrfs subvolume list " <path>
+.PP
+
+.BI "btrfs subvolume set-default " "<id> <path>"
 .PP
-\fBbtrfs\fP \fBsubvolume list\fP\fI <path>\fP
+
+.B "btrfs filesystem defragment "
+.RB [ -vcf "] [" -s
+.IR <start> ]
+.RB [ -l
+.IR <len> ]
+.RB [ -t
+.IR <size> "] " <file> | <dir> " ..."
 .PP
-\fBbtrfs\fP \fBsubvolume set-default\fP\fI <id> <path>\fP
+
+.BI "btrfs filesystem sync " <path>
 .PP
-\fBbtrfs\fP \fBfilesystem defrag\fP\fI <file>|<dir> [<file>|<dir>...]\fP
+
+.BR "btrfs filesystem resize " [ + | \- ] \fI<size>\fP [ gmk ]| max
+.I <filesystem>
 .PP
-\fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
+
+.BR "btrfs filesystem df " [ -h | --human-readable | -H | --si ]
++.I <path>
 .PP
-\fBbtrfs\fP \fBfilesystem resize\fP\fI [+/\-]<size>[gkm]|max <filesystem>\fP
+
+.BR "btrfs filesystem show " [ -h | --human-readable | -H | --si ]
+.RI [ <uuid> | <label> ]
 .PP
-\fBbtrfs\fP \fBdevice scan\fP\fI [<device> [<device>..]]\fP
+.B btrfs device scan
+.RI [ <device> ] " ..."
 .PP
-\fBbtrfs\fP \fBdevice show\fP\fI <dev>|<label> [<dev>|<label>...]\fP
+
+.B btrfs device show
+.IR <dev> | <label> " ..."
 .PP
-\fBbtrfs\fP \fBdevice balance\fP\fI <path> \fP
+
+.BI "btrfs device balance " <path>
 .PP
-\fBbtrfs\fP \fBdevice add\fP\fI <dev> [<dev>..] <path> \fP
+
+.BI "btrfs device add " <dev>
+.RI [ <dev> " ... ]" <path>
 .PP
-\fBbtrfs\fP \fBdevice delete\fP\fI <dev> [<dev>..] <path> \fP]
 
+.B "btrfs device delete"
+.IR <dev> [ <dev> " ... ]" <path>
 .PP
-\fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
+
+.BR "btrfs help" | \-\-help | \-h
 .PP
+
 .SH DESCRIPTION
 .B btrfs
 is used to control the filesystem and the files and directories stored. It is
@@ -42,123 +76,174 @@ filesystem, to defrag a file or a directory, flush the data to the disk,
 to resize the filesystem, to scan the device.
 
 It is possible to abbreviate the commands unless the commands  are ambiguous.
-For example: it is possible to run
-.I btrfs sub snaps
+For example, it is possible to run
+.B btrfs sub snaps
 instead of
-.I btrfs subvolume snapshot.
+.B btrfs subvolume snapshot.
 But
-.I btrfs dev s
+.B btrfs dev s
 is not allowed, because
-.I dev s
+.B dev s
 may be interpreted both as
-.I device show
+.B device show
 and as
-.I device scan.
+.B device scan.
 In this case
-.I btrfs
+.B btrfs
 returns an error.
 
 If a command is terminated by
-.I --help
-, the relevant help is showed. If the passed command matches more commands,
-the help of all the matched commands are showed. For example
-.I btrfs dev --help
+.B --help
+, the relevant help is shown. If the passed command matches more commands,
+the help of all the matched commands is shown. For example
+.B btrfs dev --help
 shows the help of all
-.I device*
-command.
+.B device*
+commands.
 
 .SH COMMANDS
-.TP
+.SS
+subvolume snapshot \fI<source> \fR[\fI<dest>\fR] \fI<name>\fR
 
-\fBsubvolume snapshot\fR\fI <source> [<dest>/]<name>\fR
-Create a writable snapshot of the subvolume \fI<source>\fR with the name
-\fI<name>\fR in the \fI<dest>\fR directory. If \fI<source>\fR is not a
-subvolume, \fBbtrfs\fR returns an error.
-.TP
+Create a writable snapshot of the subvolume \fI<source>\fP with the
+name \fI<name>\fP in the \fI<dest>\fP directory. If \fI<source>\fP is
+not a subvolume, \fBbtrfs\fP returns an error.
 
-\fBsubvolume delete\fR\fI <subvolume>\fR
-Delete the subvolume \fI<subvolume>\fR. If \fI<subvolume>\fR is not a
-subvolume, \fBbtrfs\fR returns an error.
-.TP
+.SS
+subvolume delete \fI<subvolume>\fP
 
-\fBsubvolume create\fR\fI [<dest>/]<name>\fR
-Create a subvolume in \fI<dest>\fR (or in the current directory if
-\fI<dest>\fR is omitted).
-.TP
+Delete the subvolume \fI<subvolume>\fP. If \fI<subvolume>\fP is not a
+subvolume, \fBbtrfs\fP returns an error.
 
-\fBsubvolume list\fR\fI <path>\fR
-List the subvolumes present in the filesystem \fI<path>\fR. For every
-subvolume is showed the subvolume ID (second column), 
-the ID of the \fItop level\fR 
-subvolume (fifth column), and the path (seventh column) relative to the
-\fItop level\fR subvolume.
-These <ID> may be used by the \fBsubvolume set-default\fR command, or at
-mount time via the \fIsubvol=\fR option.
-.TP
+.SS
+subvolume create \fR[\fI<dest>\fR] \fI<name>\fR
 
-\fBsubvolume set-default\fR\fI <id> <path>\fR
-Set the subvolume of the filesystem \fI<path>\fR which is mounted as 
-\fIdefault\fR. The subvolume is identified by \fB<id>\fR, which 
-is returned by the \fBsubvolume list\fR command.
-.TP
+Create a subvolume in \fI<dest>\fP (or in the current directory if
+\fI<dest>\fP is omitted).
 
-\fBfilesystem defragment\fP\fI <file>|<dir> [<file>|<dir>...]\fR
-Defragment files and/or directories.
-.TP
+.SS
+subvolume list \fI<path>\fP
 
-\fBdevice scan\fR \fI[<device> [<device>..]]\fR
-Scan devices for a btrfs filesystem. If no devices are passed, \fBbtrfs\fR scans
-all the block devices.
-.TP
+List the subvolumes present in the filesystem \fI<path>\fP. For every
+subvolume, show the subvolume ID (second column), the ID of the \fItop
+level\fP subvolume (fifth column), and the path (seventh column)
+relative to the \fItop level\fP subvolume. These IDs may be used by
+the \fBsubvolume set-default\fP command, or at mount time via the
+\fIsubvolid=\fP option.
+
+.SS
+subvolume set-default \fI<id> <path>\fP
+
+Set the default subvolume of the filesystem \fI<path>\fP. The default
+subvolume is the one which is mounted as default if no \fBsubvol=\fP
+or \fBsubvolid=\fP parameter is passed to mount.
 
-\fBfilesystem sync\fR\fI <path> \fR
-Force a sync for the filesystem identified by \fI<path>\fR.
+.SS
+filesystem defragment \fR[\fB-vcf\fR] [\fB-s \fI<start>\fR] [\fB-l \fI<len>\fR] [\fB-t \fI<size>\fR] \fI<file>\fR|\fI<dir> \fR...
+
+Defragment files and/or directories. Defragmenting a directory will
+only defragment the directory metadata, not the contents.
+
+Options:
+.TP
+.B -v
+Verbose output.
 .TP
+.B -c
+Compress the file/directory.
+.TP
+.B -f
+Flush (what does this do? -HRM)
+.TP
+.BI -s " <start>"
+.TP
+.BI -l " <len>"
+Defragment a range of a file, starting at offset \fI<start>\fP into the file,
+and of length \fI<len>\fP.
+.TP
+.BI -t " <size>"
+Use extent threshold \fI<size>\fP (what does this do? -HRM).
+
+.SS
+device scan \fR[\fI<device> \fR...]
+
+Scan devices for a btrfs filesystem. If no devices are passed,
+\fBbtrfs\fP scans all the block devices.
 
+.SS
+filesystem sync \fI<path>\fP
+
+Force a sync for the filesystem identified by \fI<path>\fP.
+
+.SS
 .\"
-.\" Some wording are extracted by the resize2fs man page
+.\" Some wording has been extracted from the resize2fs man page
 .\"
+filesystem resize \fR[\fB+\fR|\fB\-\fR]\fI<size>\fR[\fBgmk\fR]|\fBmax \fI<path>\fR
 
-\fBfilesystem resize\fR\fI [+/\-]<size>[gkm]|max <path>\fR
-Resize a filesystem identified by \fI<path>\fR.
-The \fI<size>\fR parameter specifies the new size of the filesystem.
-If the prefix \fI+\fR or \fI\-\fR is present the size is increased or decreased
-by the quantity \fI<size>\fR.
-If no units are specified, the unit of the \fI<size>\fR parameter defaults to
-bytes. Optionally, the size parameter may be suffixed by one of the following
-the units designators: 'K', 'M', or 'G', kilobytes, megabytes, or gigabytes,
+Resize a filesystem identified by \fI<path>\fP. The \fI<size>\fP
+parameter specifies the new size of the filesystem. If the prefix
+\fI+\fP or \fI\-\fP is present, the size is increased or decreased by
+the quantity \fI<size>\fP. If no units are specified, the unit of the
+\fI<size>\fP parameter defaults to bytes. Optionally, the size
+parameter may be suffixed by one of the unit designators \fBk\fP,
+\fBm\fP, or \fBg\fP, representing, kibibytes, mebibytes, or gibibytes,
 respectively.
 
-If 'max' is passed, the filesystem will occupy all available space on the
-volume(s).
+If \fBmax\fP is passed, the filesystem will occupy all available space
+on the volume(s).
+
+The \fBresize\fP command \fBdoes not\fP manipulate the size of the
+underlying partition. If you wish to enlarge/reduce a filesystem, you
+must make sure you can expand the partition before enlarging the
+filesystem and shrink the partition after reducing the size of the
+filesystem.
+
+.SS
+filesystem df \fR[\fB\-h\fR|\fB\-H\fR|\fB\-\-human\-readable\fR|\fB\-\-si\fR] \fI<path>\fR
+Show the amount of space used on the filesystem mounted at
+\fI<path>\fP, in bytes.
 
-The \fBresize\fR command \fBdoes not\fR manipulate the size of underlying
-partition.  If you wish to enlarge/reduce a filesystem, you must make sure you
-can expand the partition before enlarging the filesystem and shrink the
-partition after reducing the size of the filesystem.
 .TP
+.B \-h, \-\-human\-readable
+Use powers of 2^10 (1024) to report sizes.
 
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
 .TP
+.B \-H, \-\-si
+Use powers of 10^3 (1000) to report sizes, in SI multiples.
+
+.SS
+filesystem show \fR[\fB\-h\fR|\fB\-H\fR|\fB\-\-human\-readable\fR|\fB\-\-si\fR] [\fI<uuid>\fR|\fI<label>\fR]
+
+Show the usage of each device in the filesystem with UUID \fI<uuid>\fP
+or label \fI<label>\fP, or all filesystems if no UUID or label is
+provided.
 
-\fBdevice balance\fR \fI<path>\fR
-Balance the chunks of the filesystem identified by \fI<path>\fR
-across the devices.
 .TP
+.B \-h, \-\-human\-readable
+Use powers of 2^10 (1024) to report sizes.
 
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
-Add device(s) to the filesystem identified by \fI<path>\fR.
 .TP
+.B \-H, \-\-si
+Use powers of 10^3 (1000) to report sizes, in SI multiples.
+
+.SS
+device balance \fI<path>\fP
+Balance the chunks of the filesystem identified by \fI<path>\fP
+across the devices.
 
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
-Remove device(s) from a filesystem identified by \fI<path>\fR.
+.SS
+device add \fI<dev> \fR[\fI<dev> \fR...] \fI<path>\fR
+Add device(s) to the filesystem identified by \fI<path>\fP.
+
+.SS
+device delete \fI<dev> \fR[\fI<dev> \fR...] \fI<path>\fR
+Remove device(s) from a filesystem identified by \fI<path>\fP.
 .PP
 
 .SH EXIT STATUS
-\fBbtrfs\fR returns a zero exist status if it succeeds. Non zero is returned in
-case of failure.
+\fBbtrfs\fP returns a zero exist status if it succeeds. Non zero is
+returned in case of failure.
 
 .SH AVAILABILITY
 .B btrfs
@@ -166,5 +251,6 @@ is part of btrfs-progs. Btrfs filesystem is currently under heavy development,
 and not suitable for any uses other than benchmarking and review.
 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
 further details.
+
 .SH SEE ALSO
 .BR mkfs.btrfs (8)
diff --git a/man/btrfsck.8.in b/man/btrfsck.8.in
index 4bf1cff..b0201cd 100644
--- a/man/btrfsck.8.in
+++ b/man/btrfsck.8.in
@@ -1,8 +1,8 @@
-.TH BTRFSCK 8
+.TH BTRFSCK 8 "" "btrfs" "btrfs"
 .SH NAME
 btrfsck \- check a btrfs filesystem
 .SH SYNOPSIS
-.B btrfsck \fI device\fP
+.B btrfsck \fI<device>\fP
 .SH DESCRIPTION
 \fBbtrfsck\fP is used to check a btrfs filesystem.
 \fIdevice\fP is the device file where the filesystem is stored.
diff --git a/man/mkfs.btrfs.8.in b/man/mkfs.btrfs.8.in
index 1e14c6c..cff147e 100644
--- a/man/mkfs.btrfs.8.in
+++ b/man/mkfs.btrfs.8.in
@@ -1,26 +1,26 @@
-.TH MKFS.BTRFS 8
+.TH MKFS.BTRFS 8 "" "btrfs" "btrfs"
 .SH NAME
-mkfs.btrfs \- create an btrfs filesystem
+mkfs.btrfs \- create a btrfs filesystem
 .SH SYNOPSIS
 .B mkfs.btrfs
-[ \fB\-A\fP\fI alloc-start\fP ]
-[ \fB\-b\fP\fI byte-count\fP ]
-[ \fB \-d\fP\fI data-profile\fP ]
-[ \fB \-l\fP\fI leafsize\fP ]
-[ \fB \-L\fP\fI label\fP ]
-[ \fB \-m\fP\fI metadata profile\fP ]
-[ \fB \-n\fP\fI nodesize\fP ]
-[ \fB \-s\fP\fI sectorsize\fP ]
-[ \fB \-h\fP ]
-[ \fB \-V\fP ] \fI device\fP [ \fI device ...\fP ]
+[\fB\-A\fP\fI alloc-start\fP]
+[\fB\-b\fP\fI byte-count\fP]
+[\fB\-d\fP\fI data-profile\fP]
+[\fB\-l\fP\fI leafsize\fP]
+[\fB\-L\fP\fI label\fP]
+[\fB\-m\fP\fI metadata profile\fP]
+[\fB\-n\fP\fI nodesize\fP]
+[\fB\-s\fP\fI sectorsize\fP]
+[\fB\-h\fP]
+[\fB\-V\fP] \fI device\fP [\fIdevice\fP ...]
 .SH DESCRIPTION
 .B mkfs.btrfs
-is used to create an btrfs filesystem (usually in a disk partition, or an array
-of disk partitions).
+is used to create a btrfs filesystem (usually in a disk partition, or
+an array of disk partitions).
 .I device
-is the special file corresponding to the device (e.g \fI/dev/sdXX\fP ).
-If multiple \fI devices \fP are specified, btrfs is created
-spanning across the specified \fI devices\fP.
+is the special file corresponding to the device (e.g \fB/dev/sd\fP\fIXX\fP).
+If multiple \fIdevice\fPs are specified, the filesystem is created
+across all the specified \fIdevice\fPs.
 .SH OPTIONS
 .TP
 \fB\-A\fR, \fB\-\-alloc\-start \fIoffset\fR
@@ -32,7 +32,7 @@ mkfs.btrfs uses all the available storage for the filesystem.
 .TP
 \fB\-d\fR, \fB\-\-data \fItype\fR
 Specify how the data must be spanned across the devices specified. Valid
-values are raid0, raid1, raid10 or single.
+values are \fBraid0\fP, \fBraid1\fP, \fBraid10\fP or \fBsingle\fP.
 .TP
 \fB\-l\fR, \fB\-\-leafsize \fIsize\fR
 Specify the leaf size, the least data item in which btrfs stores data. The
@@ -43,7 +43,7 @@ Specify a label for the filesystem.
 .TP
 \fB\-m\fR, \fB\-\-metadata \fIprofile\fR
 Specify how metadata must be spanned across the devices specified. Valid
-values are raid0, raid1, raid10 or single.
+values are \fBraid0\fP, \fBraid1\fP, \fBraid10\fP or \fBsingle\fP.
 .TP
 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
 Specify the nodesize. By default the value is set to the pagesize.
@@ -61,3 +61,4 @@ Please refer to the btrfs wiki
 http://btrfs.wiki.kernel.org for further details.
 .SH SEE ALSO
 .BR btrfsck (8)
+.BR btrfs (8)
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-11-12 19:24 hugo
  0 siblings, 0 replies; 22+ messages in thread
From: hugo @ 2010-11-12 19:24 UTC (permalink / raw)


>From 2de353ddda78ef5cbc84e1d3267606bc44e48faa Mon Sep 17 00:00:00 2001
Message-Id: <2de353ddda78ef5cbc84e1d3267606bc44e48faa.1289589812.git.hugo@carfax.org.uk>
From: Hugo Mills <hugo@carfax.org.uk>
Date: Sat, 6 Nov 2010 00:18:12 +0000
Subject: [PATCH] Clean up typography in the man pages.
To: linux-btrfs@vger.kernel.org
Cc: Goffredo Baroncelli <kreijack@libero.it>

The man pages are a bit vague about their use of bold and italic, and
don't lay out the meaning of options for each command very well. This
patch tightens up on the type-styles and layout for the main man pages
(btrfs, btrfsck, mkfs.btrfs).

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 man/btrfs.8.in      |  270 +++++++++++++++++++++++++++++++++-----------------
 man/btrfsck.8.in    |    4 +-
 man/mkfs.btrfs.8.in |   39 ++++----
 3 files changed, 200 insertions(+), 113 deletions(-)

diff --git a/man/btrfs.8.in b/man/btrfs.8.in
index 26ef982..7569a9e 100644
--- a/man/btrfs.8.in
+++ b/man/btrfs.8.in
@@ -1,39 +1,73 @@
+.so an
 .TH BTRFS 8 "" "btrfs" "btrfs"
 .\"
 .\" Man page written by Goffredo Baroncelli <kreijack@inwind.it> (Feb 2010)
+.\" Typography fixed by Hugo Mills <hugo@carfax.org.uk> (Oct 2010)
 .\"
 .SH NAME
 btrfs \- control a btrfs filesystem
 .SH SYNOPSIS
-\fBbtrfs\fP \fBsubvolume snapshot\fP\fI <source> [<dest>/]<name>\fP
+\fBsubvolume snapshot \fI<source> \fR[\fI<dest>\fR] \fI<name>\fR
 .PP
-\fBbtrfs\fP \fBsubvolume delete\fP\fI <subvolume>\fP
+
+.BI "btrfs subvolume delete " <subvolume>
+.PP
+
+.B btrfs subvolume create
+.RI [ <dest> ] " <name>"
 .PP
-\fBbtrfs\fP \fBsubvolume create\fP\fI [<dest>/]<name>\fP
+
+.BI "btrfs subvolume list " <path>
+.PP
+
+.BI "btrfs subvolume set-default " "<id> <path>"
 .PP
-\fBbtrfs\fP \fBsubvolume list\fP\fI <path>\fP
+
+.B "btrfs filesystem defragment "
+.RB [ -vcf "] [" -s
+.IR <start> ]
+.RB [ -l
+.IR <len> ]
+.RB [ -t
+.IR <size> "] " <file> | <dir> " ..."
 .PP
-\fBbtrfs\fP \fBsubvolume set-default\fP\fI <id> <path>\fP
+
+.BI "btrfs filesystem sync " <path>
 .PP
-\fBbtrfs\fP \fBfilesystem defrag\fP\fI <file>|<dir> [<file>|<dir>...]\fP
+
+.BR "btrfs filesystem resize " [ + | \- ] \fI<size>\fP [ gmk ]| max
+.I <filesystem>
 .PP
-\fBbtrfs\fP \fBfilesystem sync\fP\fI <path> \fP
+
+.BR "btrfs filesystem df " [ -h | --human-readable | -H | --si ]
++.I <path>
 .PP
-\fBbtrfs\fP \fBfilesystem resize\fP\fI [+/\-]<size>[gkm]|max <filesystem>\fP
+
+.BR "btrfs filesystem show " [ -h | --human-readable | -H | --si ]
+.RI [ <uuid> | <label> ]
 .PP
-\fBbtrfs\fP \fBdevice scan\fP\fI [<device> [<device>..]]\fP
+.B btrfs device scan
+.RI [ <device> ] " ..."
 .PP
-\fBbtrfs\fP \fBdevice show\fP\fI <dev>|<label> [<dev>|<label>...]\fP
+
+.B btrfs device show
+.IR <dev> | <label> " ..."
 .PP
-\fBbtrfs\fP \fBdevice balance\fP\fI <path> \fP
+
+.BI "btrfs device balance " <path>
 .PP
-\fBbtrfs\fP \fBdevice add\fP\fI <dev> [<dev>..] <path> \fP
+
+.BI "btrfs device add " <dev>
+.RI [ <dev> " ... ]" <path>
 .PP
-\fBbtrfs\fP \fBdevice delete\fP\fI <dev> [<dev>..] <path> \fP]
 
+.B "btrfs device delete"
+.IR <dev> [ <dev> " ... ]" <path>
 .PP
-\fBbtrfs\fP \fBhelp|\-\-help|\-h \fP\fI\fP
+
+.BR "btrfs help" | \-\-help | \-h
 .PP
+
 .SH DESCRIPTION
 .B btrfs
 is used to control the filesystem and the files and directories stored. It is
@@ -42,123 +76,174 @@ filesystem, to defrag a file or a directory, flush the data to the disk,
 to resize the filesystem, to scan the device.
 
 It is possible to abbreviate the commands unless the commands  are ambiguous.
-For example: it is possible to run
-.I btrfs sub snaps
+For example, it is possible to run
+.B btrfs sub snaps
 instead of
-.I btrfs subvolume snapshot.
+.B btrfs subvolume snapshot.
 But
-.I btrfs dev s
+.B btrfs dev s
 is not allowed, because
-.I dev s
+.B dev s
 may be interpreted both as
-.I device show
+.B device show
 and as
-.I device scan.
+.B device scan.
 In this case
-.I btrfs
+.B btrfs
 returns an error.
 
 If a command is terminated by
-.I --help
-, the relevant help is showed. If the passed command matches more commands,
-the help of all the matched commands are showed. For example
-.I btrfs dev --help
+.B --help
+, the relevant help is shown. If the passed command matches more commands,
+the help of all the matched commands is shown. For example
+.B btrfs dev --help
 shows the help of all
-.I device*
-command.
+.B device*
+commands.
 
 .SH COMMANDS
-.TP
+.SS
+subvolume snapshot \fI<source> \fR[\fI<dest>\fR] \fI<name>\fR
 
-\fBsubvolume snapshot\fR\fI <source> [<dest>/]<name>\fR
-Create a writable snapshot of the subvolume \fI<source>\fR with the name
-\fI<name>\fR in the \fI<dest>\fR directory. If \fI<source>\fR is not a
-subvolume, \fBbtrfs\fR returns an error.
-.TP
+Create a writable snapshot of the subvolume \fI<source>\fP with the
+name \fI<name>\fP in the \fI<dest>\fP directory. If \fI<source>\fP is
+not a subvolume, \fBbtrfs\fP returns an error.
 
-\fBsubvolume delete\fR\fI <subvolume>\fR
-Delete the subvolume \fI<subvolume>\fR. If \fI<subvolume>\fR is not a
-subvolume, \fBbtrfs\fR returns an error.
-.TP
+.SS
+subvolume delete \fI<subvolume>\fP
 
-\fBsubvolume create\fR\fI [<dest>/]<name>\fR
-Create a subvolume in \fI<dest>\fR (or in the current directory if
-\fI<dest>\fR is omitted).
-.TP
+Delete the subvolume \fI<subvolume>\fP. If \fI<subvolume>\fP is not a
+subvolume, \fBbtrfs\fP returns an error.
 
-\fBsubvolume list\fR\fI <path>\fR
-List the subvolumes present in the filesystem \fI<path>\fR. For every
-subvolume is showed the subvolume ID (second column), 
-the ID of the \fItop level\fR 
-subvolume (fifth column), and the path (seventh column) relative to the
-\fItop level\fR subvolume.
-These <ID> may be used by the \fBsubvolume set-default\fR command, or at
-mount time via the \fIsubvol=\fR option.
-.TP
+.SS
+subvolume create \fR[\fI<dest>\fR] \fI<name>\fR
 
-\fBsubvolume set-default\fR\fI <id> <path>\fR
-Set the subvolume of the filesystem \fI<path>\fR which is mounted as 
-\fIdefault\fR. The subvolume is identified by \fB<id>\fR, which 
-is returned by the \fBsubvolume list\fR command.
-.TP
+Create a subvolume in \fI<dest>\fP (or in the current directory if
+\fI<dest>\fP is omitted).
 
-\fBfilesystem defragment\fP\fI <file>|<dir> [<file>|<dir>...]\fR
-Defragment files and/or directories.
-.TP
+.SS
+subvolume list \fI<path>\fP
 
-\fBdevice scan\fR \fI[<device> [<device>..]]\fR
-Scan devices for a btrfs filesystem. If no devices are passed, \fBbtrfs\fR scans
-all the block devices.
-.TP
+List the subvolumes present in the filesystem \fI<path>\fP. For every
+subvolume, show the subvolume ID (second column), the ID of the \fItop
+level\fP subvolume (fifth column), and the path (seventh column)
+relative to the \fItop level\fP subvolume. These IDs may be used by
+the \fBsubvolume set-default\fP command, or at mount time via the
+\fIsubvolid=\fP option.
+
+.SS
+subvolume set-default \fI<id> <path>\fP
+
+Set the default subvolume of the filesystem \fI<path>\fP. The default
+subvolume is the one which is mounted as default if no \fBsubvol=\fP
+or \fBsubvolid=\fP parameter is passed to mount.
 
-\fBfilesystem sync\fR\fI <path> \fR
-Force a sync for the filesystem identified by \fI<path>\fR.
+.SS
+filesystem defragment \fR[\fB-vcf\fR] [\fB-s \fI<start>\fR] [\fB-l \fI<len>\fR] [\fB-t \fI<size>\fR] \fI<file>\fR|\fI<dir> \fR...
+
+Defragment files and/or directories. Defragmenting a directory will
+only defragment the directory metadata, not the contents.
+
+Options:
+.TP
+.B -v
+Verbose output.
 .TP
+.B -c
+Compress the file/directory.
+.TP
+.B -f
+Flush (what does this do? -HRM)
+.TP
+.BI -s " <start>"
+.TP
+.BI -l " <len>"
+Defragment a range of a file, starting at offset \fI<start>\fP into the file,
+and of length \fI<len>\fP.
+.TP
+.BI -t " <size>"
+Use extent threshold \fI<size>\fP (what does this do? -HRM).
+
+.SS
+device scan \fR[\fI<device> \fR...]
+
+Scan devices for a btrfs filesystem. If no devices are passed,
+\fBbtrfs\fP scans all the block devices.
 
+.SS
+filesystem sync \fI<path>\fP
+
+Force a sync for the filesystem identified by \fI<path>\fP.
+
+.SS
 .\"
-.\" Some wording are extracted by the resize2fs man page
+.\" Some wording has been extracted from the resize2fs man page
 .\"
+filesystem resize \fR[\fB+\fR|\fB\-\fR]\fI<size>\fR[\fBgmk\fR]|\fBmax \fI<path>\fR
 
-\fBfilesystem resize\fR\fI [+/\-]<size>[gkm]|max <path>\fR
-Resize a filesystem identified by \fI<path>\fR.
-The \fI<size>\fR parameter specifies the new size of the filesystem.
-If the prefix \fI+\fR or \fI\-\fR is present the size is increased or decreased
-by the quantity \fI<size>\fR.
-If no units are specified, the unit of the \fI<size>\fR parameter defaults to
-bytes. Optionally, the size parameter may be suffixed by one of the following
-the units designators: 'K', 'M', or 'G', kilobytes, megabytes, or gigabytes,
+Resize a filesystem identified by \fI<path>\fP. The \fI<size>\fP
+parameter specifies the new size of the filesystem. If the prefix
+\fI+\fP or \fI\-\fP is present, the size is increased or decreased by
+the quantity \fI<size>\fP. If no units are specified, the unit of the
+\fI<size>\fP parameter defaults to bytes. Optionally, the size
+parameter may be suffixed by one of the unit designators \fBk\fP,
+\fBm\fP, or \fBg\fP, representing, kibibytes, mebibytes, or gibibytes,
 respectively.
 
-If 'max' is passed, the filesystem will occupy all available space on the
-volume(s).
+If \fBmax\fP is passed, the filesystem will occupy all available space
+on the volume(s).
+
+The \fBresize\fP command \fBdoes not\fP manipulate the size of the
+underlying partition. If you wish to enlarge/reduce a filesystem, you
+must make sure you can expand the partition before enlarging the
+filesystem and shrink the partition after reducing the size of the
+filesystem.
+
+.SS
+filesystem df \fR[\fB\-h\fR|\fB\-H\fR|\fB\-\-human\-readable\fR|\fB\-\-si\fR] \fI<path>\fR
+Show the amount of space used on the filesystem mounted at
+\fI<path>\fP, in bytes.
 
-The \fBresize\fR command \fBdoes not\fR manipulate the size of underlying
-partition.  If you wish to enlarge/reduce a filesystem, you must make sure you
-can expand the partition before enlarging the filesystem and shrink the
-partition after reducing the size of the filesystem.
 .TP
+.B \-h, \-\-human\-readable
+Use powers of 2^10 (1024) to report sizes.
 
-\fBfilesystem show\fR [<uuid>|<label>]\fR
-Show the btrfs filesystem with some additional info. If no UUID or label is
-passed, \fBbtrfs\fR show info of all the btrfs filesystem.
 .TP
+.B \-H, \-\-si
+Use powers of 10^3 (1000) to report sizes, in SI multiples.
+
+.SS
+filesystem show \fR[\fB\-h\fR|\fB\-H\fR|\fB\-\-human\-readable\fR|\fB\-\-si\fR] [\fI<uuid>\fR|\fI<label>\fR]
+
+Show the usage of each device in the filesystem with UUID \fI<uuid>\fP
+or label \fI<label>\fP, or all filesystems if no UUID or label is
+provided.
 
-\fBdevice balance\fR \fI<path>\fR
-Balance the chunks of the filesystem identified by \fI<path>\fR
-across the devices.
 .TP
+.B \-h, \-\-human\-readable
+Use powers of 2^10 (1024) to report sizes.
 
-\fBdevice add\fR\fI <dev> [<dev>..] <path>\fR
-Add device(s) to the filesystem identified by \fI<path>\fR.
 .TP
+.B \-H, \-\-si
+Use powers of 10^3 (1000) to report sizes, in SI multiples.
+
+.SS
+device balance \fI<path>\fP
+Balance the chunks of the filesystem identified by \fI<path>\fP
+across the devices.
 
-\fBdevice delete\fR\fI <dev> [<dev>..] <path>\fR
-Remove device(s) from a filesystem identified by \fI<path>\fR.
+.SS
+device add \fI<dev> \fR[\fI<dev> \fR...] \fI<path>\fR
+Add device(s) to the filesystem identified by \fI<path>\fP.
+
+.SS
+device delete \fI<dev> \fR[\fI<dev> \fR...] \fI<path>\fR
+Remove device(s) from a filesystem identified by \fI<path>\fP.
 .PP
 
 .SH EXIT STATUS
-\fBbtrfs\fR returns a zero exist status if it succeeds. Non zero is returned in
-case of failure.
+\fBbtrfs\fP returns a zero exist status if it succeeds. Non zero is
+returned in case of failure.
 
 .SH AVAILABILITY
 .B btrfs
@@ -166,5 +251,6 @@ is part of btrfs-progs. Btrfs filesystem is currently under heavy development,
 and not suitable for any uses other than benchmarking and review.
 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for
 further details.
+
 .SH SEE ALSO
 .BR mkfs.btrfs (8)
diff --git a/man/btrfsck.8.in b/man/btrfsck.8.in
index 4bf1cff..b0201cd 100644
--- a/man/btrfsck.8.in
+++ b/man/btrfsck.8.in
@@ -1,8 +1,8 @@
-.TH BTRFSCK 8
+.TH BTRFSCK 8 "" "btrfs" "btrfs"
 .SH NAME
 btrfsck \- check a btrfs filesystem
 .SH SYNOPSIS
-.B btrfsck \fI device\fP
+.B btrfsck \fI<device>\fP
 .SH DESCRIPTION
 \fBbtrfsck\fP is used to check a btrfs filesystem.
 \fIdevice\fP is the device file where the filesystem is stored.
diff --git a/man/mkfs.btrfs.8.in b/man/mkfs.btrfs.8.in
index 1e14c6c..cff147e 100644
--- a/man/mkfs.btrfs.8.in
+++ b/man/mkfs.btrfs.8.in
@@ -1,26 +1,26 @@
-.TH MKFS.BTRFS 8
+.TH MKFS.BTRFS 8 "" "btrfs" "btrfs"
 .SH NAME
-mkfs.btrfs \- create an btrfs filesystem
+mkfs.btrfs \- create a btrfs filesystem
 .SH SYNOPSIS
 .B mkfs.btrfs
-[ \fB\-A\fP\fI alloc-start\fP ]
-[ \fB\-b\fP\fI byte-count\fP ]
-[ \fB \-d\fP\fI data-profile\fP ]
-[ \fB \-l\fP\fI leafsize\fP ]
-[ \fB \-L\fP\fI label\fP ]
-[ \fB \-m\fP\fI metadata profile\fP ]
-[ \fB \-n\fP\fI nodesize\fP ]
-[ \fB \-s\fP\fI sectorsize\fP ]
-[ \fB \-h\fP ]
-[ \fB \-V\fP ] \fI device\fP [ \fI device ...\fP ]
+[\fB\-A\fP\fI alloc-start\fP]
+[\fB\-b\fP\fI byte-count\fP]
+[\fB\-d\fP\fI data-profile\fP]
+[\fB\-l\fP\fI leafsize\fP]
+[\fB\-L\fP\fI label\fP]
+[\fB\-m\fP\fI metadata profile\fP]
+[\fB\-n\fP\fI nodesize\fP]
+[\fB\-s\fP\fI sectorsize\fP]
+[\fB\-h\fP]
+[\fB\-V\fP] \fI device\fP [\fIdevice\fP ...]
 .SH DESCRIPTION
 .B mkfs.btrfs
-is used to create an btrfs filesystem (usually in a disk partition, or an array
-of disk partitions).
+is used to create a btrfs filesystem (usually in a disk partition, or
+an array of disk partitions).
 .I device
-is the special file corresponding to the device (e.g \fI/dev/sdXX\fP ).
-If multiple \fI devices \fP are specified, btrfs is created
-spanning across the specified \fI devices\fP.
+is the special file corresponding to the device (e.g \fB/dev/sd\fP\fIXX\fP).
+If multiple \fIdevice\fPs are specified, the filesystem is created
+across all the specified \fIdevice\fPs.
 .SH OPTIONS
 .TP
 \fB\-A\fR, \fB\-\-alloc\-start \fIoffset\fR
@@ -32,7 +32,7 @@ mkfs.btrfs uses all the available storage for the filesystem.
 .TP
 \fB\-d\fR, \fB\-\-data \fItype\fR
 Specify how the data must be spanned across the devices specified. Valid
-values are raid0, raid1, raid10 or single.
+values are \fBraid0\fP, \fBraid1\fP, \fBraid10\fP or \fBsingle\fP.
 .TP
 \fB\-l\fR, \fB\-\-leafsize \fIsize\fR
 Specify the leaf size, the least data item in which btrfs stores data. The
@@ -43,7 +43,7 @@ Specify a label for the filesystem.
 .TP
 \fB\-m\fR, \fB\-\-metadata \fIprofile\fR
 Specify how metadata must be spanned across the devices specified. Valid
-values are raid0, raid1, raid10 or single.
+values are \fBraid0\fP, \fBraid1\fP, \fBraid10\fP or \fBsingle\fP.
 .TP
 \fB\-n\fR, \fB\-\-nodesize \fIsize\fR
 Specify the nodesize. By default the value is set to the pagesize.
@@ -61,3 +61,4 @@ Please refer to the btrfs wiki
 http://btrfs.wiki.kernel.org for further details.
 .SH SEE ALSO
 .BR btrfsck (8)
+.BR btrfs (8)
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-10-17 18:18 hugo-lkml
  0 siblings, 0 replies; 22+ messages in thread
From: hugo-lkml @ 2010-10-17 18:18 UTC (permalink / raw)


>From hugo-lkml@carfax.org.uk Sun Oct 17 19:13:47 2010
Message-Id: <20101017181346.872364958@carfax.org.uk>
User-Agent: quilt/0.48-1
Date: Sun, 17 Oct 2010 19:13:25 +0100
From: hugo-lkml@carfax.org.uk
To: linux-btrfs@vger.kernel.org
Cc: Hugo Mills <hugo@carfax.org.uk>
Subject: [patch 4/4] Add an option to show ISO, binary or raw bytes counts using btrfs-show.
References: <20101017181321.592805312@carfax.org.uk>
Content-Disposition: inline; filename=btrfs-show-numbers

Change btrfs-show to allow the user to control the scales used for
sizes in the output.

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 btrfs-show.c |   24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

Index: btrfs-progs-unstable/btrfs-show.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs-show.c	2010-10-17 19:00:34.000000000 +0100
+++ btrfs-progs-unstable/btrfs-show.c	2010-10-17 19:12:50.000000000 +0100
@@ -52,7 +52,7 @@
 	return 0;
 }
 
-static void print_one_uuid(struct btrfs_fs_devices *fs_devices)
+static void print_one_uuid(struct btrfs_fs_devices *fs_devices, int format)
 {
 	char uuidbuf[37];
 	struct list_head *cur;
@@ -69,8 +69,7 @@
 	else
 		printf("Label: none ");
 
-	super_bytes_used = pretty_sizes(device->super_bytes_used,
-									PRETTY_SIZE_BINARY);
+	super_bytes_used = pretty_sizes(device->super_bytes_used, format);
 
 	total = device->total_devs;
 	printf(" uuid: %s\n\tTotal devices %llu FS bytes used %s\n", uuidbuf,
@@ -82,8 +81,8 @@
 		char *total_bytes;
 		char *bytes_used;
 		device = list_entry(cur, struct btrfs_device, dev_list);
-		total_bytes = pretty_sizes(device->total_bytes, PRETTY_SIZE_BINARY);
-		bytes_used = pretty_sizes(device->bytes_used, PRETTY_SIZE_BINARY);
+		total_bytes = pretty_sizes(device->total_bytes,	format);
+		bytes_used = pretty_sizes(device->bytes_used, format);
 		printf("\tdevid %4llu size %s used %s path %s\n",
 		       (unsigned long long)device->devid,
 		       total_bytes, bytes_used, device->name);
@@ -99,7 +98,8 @@
 
 static void print_usage(void)
 {
-	fprintf(stderr, "usage: btrfs-show [search label or device]\n");
+	fprintf(stderr, "usage: btrfs-show [-i|-b|-r] [search label or device]\n");
+	fprintf(stderr, "Options:\n -i, -b, -r: Show sizes in ISO, binary or raw form respectively.\n");
 	fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
 	exit(1);
 }
@@ -117,6 +117,7 @@
 	char *search = NULL;
 	int ret;
 	int option_index = 0;
+	int format = PRETTY_SIZE_BINARY;
 
 	while(1) {
 		int c;
@@ -125,6 +126,15 @@
 		if (c < 0)
 			break;
 		switch(c) {
+			case 'i':
+				format = PRETTY_SIZE_ISO;
+				break;
+			case 'b':
+				format = PRETTY_SIZE_BINARY;
+				break;
+			case 'r':
+				format = PRETTY_SIZE_RAW;
+				break;
 			default:
 				print_usage();
 		}
@@ -144,7 +154,7 @@
 					list);
 		if (search && uuid_search(fs_devices, search) == 0)
 			continue;
-		print_one_uuid(fs_devices);
+		print_one_uuid(fs_devices, format);
 	}
 	printf("%s\n", BTRFS_BUILD_VERSION);
 	return 0;



^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-10-17 18:18 hugo-lkml
  0 siblings, 0 replies; 22+ messages in thread
From: hugo-lkml @ 2010-10-17 18:18 UTC (permalink / raw)


>From hugo-lkml@carfax.org.uk Sun Oct 17 19:13:46 2010
Message-Id: <20101017181346.642118997@carfax.org.uk>
User-Agent: quilt/0.48-1
Date: Sun, 17 Oct 2010 19:13:24 +0100
From: hugo-lkml@carfax.org.uk
To: linux-btrfs@vger.kernel.org
Cc: Hugo Mills <hugo@carfax.org.uk>
Subject: [patch 3/4] Add an option to show ISO, binary or raw bytes counts using show.
References: <20101017181321.592805312@carfax.org.uk>
Content-Disposition: inline; filename=show-numbers

Change btrfs filesystem show to allow the user to control the scales
used for sizes in the output.

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 btrfs.c      |    5 +++--
 btrfs_cmds.c |   42 +++++++++++++++++++++++++++++++++++-------
 2 files changed, 38 insertions(+), 9 deletions(-)

Index: btrfs-progs-unstable/btrfs.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs.c	2010-10-17 18:47:36.000000000 +0100
+++ btrfs-progs-unstable/btrfs.c	2010-10-17 18:48:38.000000000 +0100
@@ -83,9 +83,10 @@
 		"will occupe all available space on the device."
 	},
 	{ do_show_filesystem, 999,
-	  "filesystem show", "[<uuid>|<label>]\n"
+	  "filesystem show", "[-r|-b|-i] [<uuid>|<label>]\n"
 		"Show the info of a btrfs filesystem. If no <uuid> or <label>\n"
-		"is passed, info of all the btrfs filesystem are shown."
+		"is passed, info of all the btrfs filesystem are shown.\n"
+		"-r, -b, -i for raw (bytes), binary or ISO sizes."
 	},
 	{ do_df_filesystem, -1,
 	  "filesystem df", "[-r|-b|-i] <path>\n"
Index: btrfs-progs-unstable/btrfs_cmds.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs_cmds.c	2010-10-17 18:47:36.000000000 +0100
+++ btrfs-progs-unstable/btrfs_cmds.c	2010-10-17 18:48:38.000000000 +0100
@@ -617,7 +617,7 @@
 	return 0;
 }
 
-static void print_one_uuid(struct btrfs_fs_devices *fs_devices)
+static void print_one_uuid(struct btrfs_fs_devices *fs_devices, int format)
 {
 	char uuidbuf[37];
 	struct list_head *cur;
@@ -634,8 +634,7 @@
 	else
 		printf("Label: none ");
 
-	super_bytes_used = pretty_sizes(device->super_bytes_used,
-									PRETTY_SIZE_BINARY);
+	super_bytes_used = pretty_sizes(device->super_bytes_used, format);
 
 	total = device->total_devs;
 	printf(" uuid: %s\n\tTotal devices %llu FS bytes used %s\n", uuidbuf,
@@ -647,8 +646,8 @@
 		char *total_bytes;
 		char *bytes_used;
 		device = list_entry(cur, struct btrfs_device, dev_list);
-		total_bytes = pretty_sizes(device->total_bytes, PRETTY_SIZE_BINARY);
-		bytes_used = pretty_sizes(device->bytes_used, PRETTY_SIZE_BINARY);
+		total_bytes = pretty_sizes(device->total_bytes, format);
+		bytes_used = pretty_sizes(device->bytes_used, format);
 		printf("\tdevid %4llu size %s used %s path %s\n",
 		       (unsigned long long)device->devid,
 		       total_bytes, bytes_used, device->name);
@@ -667,8 +666,37 @@
 	struct list_head *all_uuids;
 	struct btrfs_fs_devices *fs_devices;
 	struct list_head *cur_uuid;
-	char *search = argv[1];
+	char *search;
 	int ret;
+	int format = PRETTY_SIZE_BINARY;
+
+	optind = 1;
+	while(1) {
+		int c = getopt(argc, argv, "rbi");
+		if (c < 0)
+			break;
+		switch(c) {
+		case 'r':
+			format = PRETTY_SIZE_RAW;
+			break;
+		case 'b':
+			format = PRETTY_SIZE_BINARY;
+			break;
+		case 'i':
+			format = PRETTY_SIZE_ISO;
+			break;
+		default:
+			fprintf(stderr, "Invalid arguments for show\n");
+			free(argv);
+			return 1;
+		}
+	}
+	if (argc - optind > 1) {
+		fprintf(stderr, "Too many arguments for show\n");
+		free(argv);
+		return 1;
+	}
+	search = argv[optind];
 
 	ret = btrfs_scan_one_dir("/dev", 0);
 	if (ret){
@@ -682,7 +710,7 @@
 					list);
 		if (search && uuid_search(fs_devices, search) == 0)
 			continue;
-		print_one_uuid(fs_devices);
+		print_one_uuid(fs_devices, format);
 	}
 	printf("%s\n", BTRFS_BUILD_VERSION);
 	return 0;



^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-10-17 18:18 hugo-lkml
  0 siblings, 0 replies; 22+ messages in thread
From: hugo-lkml @ 2010-10-17 18:18 UTC (permalink / raw)


>From hugo-lkml@carfax.org.uk Sun Oct 17 19:13:46 2010
Message-Id: <20101017181346.413930827@carfax.org.uk>
User-Agent: quilt/0.48-1
Date: Sun, 17 Oct 2010 19:13:23 +0100
From: hugo-lkml@carfax.org.uk
To: linux-btrfs@vger.kernel.org
Cc: Hugo Mills <hugo@carfax.org.uk>
Subject: [patch 2/4] Add an option to show ISO, binary or raw bytes counts using df.
References: <20101017181321.592805312@carfax.org.uk>
Content-Disposition: inline; filename=df-numbers

Change btrfs filesystem df to allow the user to control the scales
used for sizes in the output.

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 btrfs.c      |    5 +++--
 btrfs_cmds.c |   37 ++++++++++++++++++++++++++++++++-----
 2 files changed, 35 insertions(+), 7 deletions(-)

Index: btrfs-progs-unstable/btrfs.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs.c	2010-10-17 18:43:57.000000000 +0100
+++ btrfs-progs-unstable/btrfs.c	2010-10-17 18:47:36.000000000 +0100
@@ -87,9 +87,10 @@
 		"Show the info of a btrfs filesystem. If no <uuid> or <label>\n"
 		"is passed, info of all the btrfs filesystem are shown."
 	},
-	{ do_df_filesystem, 1,
-	  "filesystem df", "<path>\n"
+	{ do_df_filesystem, -1,
+	  "filesystem df", "[-r|-b|-i] <path>\n"
 		"Show space usage information for a mount point\n."
+		"-r, -b, -i for raw (bytes), binary or ISO sizes."
 	},
 	{ do_balance, 1,
 	  "filesystem balance", "<path>\n"
Index: btrfs-progs-unstable/btrfs_cmds.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs_cmds.c	2010-10-17 18:43:57.000000000 +0100
+++ btrfs-progs-unstable/btrfs_cmds.c	2010-10-17 18:47:36.000000000 +0100
@@ -841,7 +841,36 @@
 	u64 count = 0, i;
 	int ret;
 	int fd;
-	char *path = argv[1];
+	char *path;
+	int format = PRETTY_SIZE_BINARY;
+
+	optind = 1;
+	while(1) {
+		int c = getopt(nargs, argv, "rbi");
+		if (c < 0)
+			break;
+		switch(c) {
+		case 'r':
+			format = PRETTY_SIZE_RAW;
+			break;
+		case 'b':
+			format = PRETTY_SIZE_BINARY;
+			break;
+		case 'i':
+			format = PRETTY_SIZE_ISO;
+			break;
+		default:
+			fprintf(stderr, "Invalid arguments for df\n");
+			free(argv);
+			return 1;
+		}
+	}
+	if (nargs - optind != 1) {
+		fprintf(stderr, "No path given for df\n");
+		free(argv);
+		return 1;
+	}
+	path = argv[optind];
 
 	fd = open_file_or_dir(path);
 	if (fd < 0) {
@@ -914,10 +943,8 @@
 			written += 8;
 		}
 
-		total_bytes = pretty_sizes(sargs->spaces[i].total_bytes,
-									PRETTY_SIZE_BINARY);
-		used_bytes = pretty_sizes(sargs->spaces[i].used_bytes,
-									PRETTY_SIZE_BINARY);
+		total_bytes = pretty_sizes(sargs->spaces[i].total_bytes, format);
+		used_bytes = pretty_sizes(sargs->spaces[i].used_bytes, format);
 		printf("%s: total=%s, used=%s\n", description, total_bytes,
 		       used_bytes);
 	}



^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-10-17 18:18 hugo-lkml
  0 siblings, 0 replies; 22+ messages in thread
From: hugo-lkml @ 2010-10-17 18:18 UTC (permalink / raw)


>From hugo-lkml@carfax.org.uk Sun Oct 17 19:13:46 2010
Message-Id: <20101017181346.185262431@carfax.org.uk>
User-Agent: quilt/0.48-1
Date: Sun, 17 Oct 2010 19:13:22 +0100
From: hugo-lkml@carfax.org.uk
To: linux-btrfs@vger.kernel.org
Cc: Hugo Mills <hugo@carfax.org.uk>
Subject: [patch 1/4] Update pretty-printer for different multiple systems.
References: <20101017181321.592805312@carfax.org.uk>
Content-Disposition: inline; filename=raw-numbers

Make the pretty-printer for data sizes capable of printing in ISO
(powers of 10^3), binary (powers of 2^10) or raw (a simple byte
count).

We default to binary sizes, maintaining the original behaviour, but
print (e.g.) MiB to indicate that it's a power of 2^10.

Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
---
 btrfs-show.c |    7 ++++---
 btrfs_cmds.c |   13 ++++++++-----
 mkfs.c       |    3 ++-
 utils.c      |   48 +++++++++++++++++++++++++++++++++---------------
 utils.h      |    7 ++++++-
 5 files changed, 53 insertions(+), 25 deletions(-)

Index: btrfs-progs-unstable/btrfs-show.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs-show.c	2010-10-17 18:13:29.000000000 +0100
+++ btrfs-progs-unstable/btrfs-show.c	2010-10-17 19:00:34.000000000 +0100
@@ -69,7 +69,8 @@
 	else
 		printf("Label: none ");
 
-	super_bytes_used = pretty_sizes(device->super_bytes_used);
+	super_bytes_used = pretty_sizes(device->super_bytes_used,
+									PRETTY_SIZE_BINARY);
 
 	total = device->total_devs;
 	printf(" uuid: %s\n\tTotal devices %llu FS bytes used %s\n", uuidbuf,
@@ -81,8 +82,8 @@
 		char *total_bytes;
 		char *bytes_used;
 		device = list_entry(cur, struct btrfs_device, dev_list);
-		total_bytes = pretty_sizes(device->total_bytes);
-		bytes_used = pretty_sizes(device->bytes_used);
+		total_bytes = pretty_sizes(device->total_bytes, PRETTY_SIZE_BINARY);
+		bytes_used = pretty_sizes(device->bytes_used, PRETTY_SIZE_BINARY);
 		printf("\tdevid %4llu size %s used %s path %s\n",
 		       (unsigned long long)device->devid,
 		       total_bytes, bytes_used, device->name);
Index: btrfs-progs-unstable/btrfs_cmds.c
===================================================================
--- btrfs-progs-unstable.orig/btrfs_cmds.c	2010-10-17 18:13:29.000000000 +0100
+++ btrfs-progs-unstable/btrfs_cmds.c	2010-10-17 19:00:39.000000000 +0100
@@ -634,7 +634,8 @@
 	else
 		printf("Label: none ");
 
-	super_bytes_used = pretty_sizes(device->super_bytes_used);
+	super_bytes_used = pretty_sizes(device->super_bytes_used,
+									PRETTY_SIZE_BINARY);
 
 	total = device->total_devs;
 	printf(" uuid: %s\n\tTotal devices %llu FS bytes used %s\n", uuidbuf,
@@ -646,8 +647,8 @@
 		char *total_bytes;
 		char *bytes_used;
 		device = list_entry(cur, struct btrfs_device, dev_list);
-		total_bytes = pretty_sizes(device->total_bytes);
-		bytes_used = pretty_sizes(device->bytes_used);
+		total_bytes = pretty_sizes(device->total_bytes, PRETTY_SIZE_BINARY);
+		bytes_used = pretty_sizes(device->bytes_used, PRETTY_SIZE_BINARY);
 		printf("\tdevid %4llu size %s used %s path %s\n",
 		       (unsigned long long)device->devid,
 		       total_bytes, bytes_used, device->name);
@@ -913,8 +914,10 @@
 			written += 8;
 		}
 
-		total_bytes = pretty_sizes(sargs->spaces[i].total_bytes);
-		used_bytes = pretty_sizes(sargs->spaces[i].used_bytes);
+		total_bytes = pretty_sizes(sargs->spaces[i].total_bytes,
+									PRETTY_SIZE_BINARY);
+		used_bytes = pretty_sizes(sargs->spaces[i].used_bytes,
+									PRETTY_SIZE_BINARY);
 		printf("%s: total=%s, used=%s\n", description, total_bytes,
 		       used_bytes);
 	}
Index: btrfs-progs-unstable/mkfs.c
===================================================================
--- btrfs-progs-unstable.orig/mkfs.c	2010-10-17 18:13:29.000000000 +0100
+++ btrfs-progs-unstable/mkfs.c	2010-10-17 18:15:08.000000000 +0100
@@ -524,7 +524,8 @@
 	printf("fs created label %s on %s\n\tnodesize %u leafsize %u "
 	    "sectorsize %u size %s\n",
 	    label, first_file, nodesize, leafsize, sectorsize,
-	    pretty_sizes(btrfs_super_total_bytes(&root->fs_info->super_copy)));
+		pretty_sizes(btrfs_super_total_bytes(&root->fs_info->super_copy),
+			PRETTY_SIZE_BINARY));
 
 	printf("%s\n", BTRFS_BUILD_VERSION);
 	btrfs_commit_transaction(trans, root);
Index: btrfs-progs-unstable/utils.c
===================================================================
--- btrfs-progs-unstable.orig/utils.c	2010-10-17 18:13:29.000000000 +0100
+++ btrfs-progs-unstable/utils.c	2010-10-17 18:44:13.000000000 +0100
@@ -966,30 +966,48 @@
 	return ret;
 }
 
-static char *size_strs[] = { "", "KB", "MB", "GB", "TB",
+static char *bin_size_strs[] = { "", "KiB", "MiB", "GiB", "TiB",
+			    "PiB", "EiB", "ZiB", "YiB"};
+static char *iso_size_strs[] = { "", "kB", "MB", "GB", "TB",
 			    "PB", "EB", "ZB", "YB"};
-char *pretty_sizes(u64 size)
+char *pretty_sizes(u64 size, int format)
 {
 	int num_divs = 0;
 	u64 last_size = size;
 	u64 fract_size = size;
 	float fraction;
 	char *pretty;
+	int divisor = 1024;
+	char** size_strs = bin_size_strs;
 
-	while(size > 0) {
-		fract_size = last_size;
-		last_size = size;
-		size /= 1024;
-		num_divs++;
+	if(format == PRETTY_SIZE_RAW) {
+		pretty = malloc(21);
+		sprintf(pretty, "%llu", size);
+	} else {
+		if(format == PRETTY_SIZE_ISO) {
+			divisor = 1000;
+			size_strs = iso_size_strs;
+		} else if(format == PRETTY_SIZE_BINARY) {
+			divisor = 1024;
+			size_strs = bin_size_strs;
+		}
+
+		while(size > 0) {
+			fract_size = last_size;
+			last_size = size;
+			size /= divisor;
+			num_divs++;
+		}
+		if (num_divs == 0)
+			num_divs = 1;
+		if (num_divs > ARRAY_SIZE(bin_size_strs))
+			return NULL;
+
+		fraction = (float)fract_size / divisor;
+		pretty = malloc(16);
+		sprintf(pretty, "%.2f%s", fraction, size_strs[num_divs-1]);
 	}
-	if (num_divs == 0)
-		num_divs = 1;
-	if (num_divs > ARRAY_SIZE(size_strs))
-		return NULL;
-
-	fraction = (float)fract_size / 1024;
-	pretty = malloc(16);
-	sprintf(pretty, "%.2f%s", fraction, size_strs[num_divs-1]);
+
 	return pretty;
 }
 
Index: btrfs-progs-unstable/utils.h
===================================================================
--- btrfs-progs-unstable.orig/utils.h	2010-10-17 18:13:29.000000000 +0100
+++ btrfs-progs-unstable/utils.h	2010-10-17 18:15:08.000000000 +0100
@@ -21,6 +21,11 @@
 
 #define BTRFS_MKFS_SYSTEM_GROUP_SIZE (4 * 1024 * 1024)
 
+/* Constants for pretty_size() format parameter */
+#define PRETTY_SIZE_RAW 0
+#define PRETTY_SIZE_ISO 1
+#define PRETTY_SIZE_BINARY 2
+
 int make_btrfs(int fd, const char *device, const char *label,
 	       u64 blocks[6], u64 num_bytes, u32 nodesize,
 	       u32 leafsize, u32 sectorsize, u32 stripesize);
@@ -39,5 +44,5 @@
 int check_mounted(const char *devicename);
 int btrfs_device_already_in_root(struct btrfs_root *root, int fd,
 				 int super_offset);
-char *pretty_sizes(u64 size);
+char *pretty_sizes(u64 size, int format);
 #endif



^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-10-17 18:18 hugo-lkml
  0 siblings, 0 replies; 22+ messages in thread
From: hugo-lkml @ 2010-10-17 18:18 UTC (permalink / raw)


>From hugo-lkml@carfax.org.uk Sun Oct 17 19:13:46 2010
Message-Id: <20101017181321.592805312@carfax.org.uk>
User-Agent: quilt/0.48-1
Date: Sun, 17 Oct 2010 19:13:21 +0100
From: hugo-lkml@carfax.org.uk
To: linux-btrfs@vger.kernel.org
Subject: [patch 0/4] Size reporting of userspace tools

   While playing around with resizing volumes recently, I realised
that I didn't know whether btrfs fi show and btrfs fi df reported
sizes in ISO (e.g. powers of 10^3) units, as they appear to from the
labels they use, or in binary (powers of 2^10) units. Also, a mere
three significant figures is somewhat less than I'm comfortable with
if I'm about to resize the containing block device downwards.

   This patch series adds the ability to pick which scale is used for
show and df, and labels the amounts properly (e.g. MB for ISO, MiB for
binary units).

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
        --- emacs:  Eighty Megabytes And Constantly Swapping. ---        


^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-08-30  2:32 Bret Palsson
  0 siblings, 0 replies; 22+ messages in thread
From: Bret Palsson @ 2010-08-30  2:32 UTC (permalink / raw)
  To: linux-btrfs

subscribe linux-btrfs

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-07-17  8:06 Grant Mayor
  0 siblings, 0 replies; 22+ messages in thread
From: Grant Mayor @ 2010-07-17  8:06 UTC (permalink / raw)


FUNDING NOTIFICATION.............I am Mr Grant Mayor. i am a loan lender
as well as an angel investor, I offer funds based on demands and i use the
best possible interest rate so that it can make both paties smile. I allow
my clients to decide the loan repayment duration. So i have my door for
funding opened to all that is in need, If you have been turned down be
many financial institutions, this is a great time for you to make things
up. If you need a stress free funing, kindly get back to me with a mail of
application for funding and you will get funded within 3 working days.
Send all mails of application to: to.grantfinancing@gmail.com.

I await your response.

Grant Mayor.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-04-30 20:57 Ilya Shestopalov
  0 siblings, 0 replies; 22+ messages in thread
From: Ilya Shestopalov @ 2010-04-30 20:57 UTC (permalink / raw)
  To: linux-btrfs

Bug message:
Btrfs loaded
device fsid 694983118c1865e7-ed2ca7537412e6ae devid 1 transid 73188 /dev/sda5
------------[ cut here ]------------
kernel BUG at fs/btrfs/tree-log.c:809!
invalid opcode: 0000 [#1] PREEMPT SMP 
last sysfs file: /sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/scsi_level
Modules linked in: btrfs zlib_deflate crc32c libcrc32c fuse usbhid hid snd_hda_codec_analog snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_timer snd soundcore snd_page_alloc rtc_cmos rtc_core rtc_lib uhci_hcd asus_atk0110 nvidia(P) agpgart firewire_ohci firewire_core crc_itu_t ehci_hcd usbcore i2c_i801 i2c_core iTCO_wdt iTCO_vendor_support thermal button processor sky2 x38_edac edac_core sg evdev pcspkr ext4 mbcache jbd2 crc16 sr_mod sd_mod cdrom floppy pata_jmicron ata_piix pata_acpi ata_generic libata scsi_mod

Pid: 2889, comm: mount Tainted: P           2.6.33-ARCH #1 P5E/P5E
EIP: 0060:[<f9f468b9>] EFLAGS: 00010246 CPU: 1
EIP is at add_inode_ref+0x3e9/0x400 [btrfs]
EAX: 00000000 EBX: 00000097 ECX: 00000000 EDX: 000000a9
ESI: 00000002 EDI: f6ea4b40 EBP: f69e9c40 ESP: f69e9be4
 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Process mount (pid: 2889, ti=f69e8000 task=f653e1a0 task.ti=f69e8000)
Stack:
 f69e9bf8 f69e9bf8 c102ade0 f6ea4b40 00000011 f69e9c00 f9f3991c f69e9c40
<0> f9f2e36f f69e9c30 00000000 f6ea5000 f6df83dc 00000004 00000000 f6ea4b40
<0> f6810000 f6810800 fffa3000 fffa3000 00000097 00000002 f6ea4b40 f69e9ca4
Call Trace:
 [<c102ade0>] ? kunmap_atomic+0x70/0x80
 [<f9f3991c>] ? unmap_extent_buffer+0xc/0x10 [btrfs]
 [<f9f2e36f>] ? btrfs_item_size+0xdf/0xf0 [btrfs]
 [<f9f477fe>] ? replay_one_buffer+0x23e/0x310 [btrfs]
 [<f9f44d70>] ? walk_down_log_tree+0x210/0x510 [btrfs]
 [<f9f45111>] ? walk_log_tree+0xa1/0x1c0 [btrfs]
 [<f9f4962b>] ? btrfs_recover_log_trees+0x1cb/0x290 [btrfs]
 [<f9f475c0>] ? replay_one_buffer+0x0/0x310 [btrfs]
 [<f9f14f58>] ? open_ctree+0x10b8/0x15d0 [btrfs]
 [<c1185249>] ? strlcpy+0x39/0x50
 [<f9ef8760>] ? btrfs_get_sb+0x310/0x3f0 [btrfs]
 [<c10ed24a>] ? __alloc_percpu+0xa/0x10
 [<c110be56>] ? alloc_vfsmnt+0xe6/0x140
 [<c10f69b1>] ? vfs_kern_mount+0x61/0x1b0
 [<c110ac87>] ? get_fs_type+0x97/0xb0
 [<c10f6b59>] ? do_kern_mount+0x39/0xe0
 [<c110d398>] ? do_mount+0x358/0x700
 [<c10cf0c4>] ? strndup_user+0x44/0x80
 [<c110d9e6>] ? sys_mount+0x66/0xa0
 [<c100371f>] ? sysenter_do_call+0x12/0x28
Code: 8b 45 e4 e8 ca 39 fb ff 8b 45 d4 e8 e2 15 1c c7 8b 45 cc e8 da 15 1c c7 31 c0 83 c4 50 5b 5e 5f 5d c3 b8 fe ff ff ff eb f1 0f 0b <0f> 0b 0f 0b 0f 0b 0f 0b 0f 0b 0f 0b 8d 74 26 00 8d bc 27 00 00 
EIP: [<f9f468b9>] add_inode_ref+0x3e9/0x400 [btrfs] SS:ESP 0068:f69e9be4
---[ end trace 1d3c13495ff7bd0e ]---



^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-04-14 20:19 Jay Sullivan
  0 siblings, 0 replies; 22+ messages in thread
From: Jay Sullivan @ 2010-04-14 20:19 UTC (permalink / raw)
  To: linux-btrfs

subscribe linux-btrfs

^ permalink raw reply	[flat|nested] 22+ messages in thread

* (unknown)
@ 2010-03-17  9:36 dm
  0 siblings, 0 replies; 22+ messages in thread
From: dm @ 2010-03-17  9:36 UTC (permalink / raw)
  To: linux-btrfs



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2012-05-08  0:37 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-10  1:46 (unknown) jck
  -- strict thread matches above, loose matches on Subject: below --
2012-05-08  0:37 (unknown) Mrs.Dorothy Peters
2012-05-05 18:59 (unknown) Mrs Sabah Halif
     [not found] <1330599216.71336.YahooMailNeo@web30703.mail.mud.yahoo.com>
2012-03-01 12:41 ` (unknown) bella tk
2011-10-29 20:38 (unknown) Kai Moonbourn
2011-09-20 15:24 (unknown) Ken D'Ambrosio
2011-09-01 11:50 (unknown) Ivan Piazza
2011-07-01 16:30 (unknown) Edward Goggin
2011-03-19 20:22 (unknown) Kim Leyendecker
2011-02-20 12:22 (unknown) Christian Brunner
2010-11-12 19:33 (unknown) hugo
2010-11-12 19:24 (unknown) hugo
2010-10-17 18:18 (unknown) hugo-lkml
2010-10-17 18:18 (unknown) hugo-lkml
2010-10-17 18:18 (unknown) hugo-lkml
2010-10-17 18:18 (unknown) hugo-lkml
2010-10-17 18:18 (unknown) hugo-lkml
2010-08-30  2:32 (unknown) Bret Palsson
2010-07-17  8:06 (unknown) Grant Mayor
2010-04-30 20:57 (unknown) Ilya Shestopalov
2010-04-14 20:19 (unknown) Jay Sullivan
2010-03-17  9:36 (unknown) dm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).