summaryrefslogtreecommitdiff
path: root/file-item.c
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2011-06-04 11:19:18 +0300
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:58 -0400
commit545b52c2fa77614ad460f2a7f5943632dce6052e (patch)
tree101ed1e8f1793bf91dd20ef52cf9f37fca2c17de /file-item.c
parent2acb6817c70aff99dc42239f3a69169512913ff2 (diff)
mkfs.btrfs: fail on scandir error (-r mode)
mkfs.btrfs does not handle relative pathnames for now. When they are passed to it it creates empty image. So first time I thought it does not work at all. This patch adds error handling for scandir(). With patch it behaves this way: $ mkfs.btrfs -r ./root ... fs created label (null) on output.img nodesize 4096 leafsize 4096 sectorsize 4096 size 256.00MB Btrfs v0.19-52-g438c5ff-dirty scandir for ./root failed: No such file or directory unable to traverse_directory Making image is aborted. mkfs.btrfs: mkfs.c:1402: main: Assertion `!(ret)' failed. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'file-item.c')
0 files changed, 0 insertions, 0 deletions