Re: [PATCH 1/1] btrfs: btrfs_calc_avail_data_space cope with no read/write devices V2

2011-11-28 Thread Jonathan Nieder
Li Zefan wrote: > This patch has the same problem with your previous one, that it will set > f_bavail to 0. I've sent out a new patch yesterday. Thanks for the quick feedback. That makes sense. (The new patch is at [1], for reference.) [1] http://thread.gmane.org/gmane.comp.file-systems.btrfs/

Re: [PATCH 1/1] btrfs: btrfs_calc_avail_data_space cope with no read/write devices V2

2011-11-28 Thread Jonathan Nieder
Hi, Andy Whitcroft wrote: > When we mount a btrfs filesystem from read-only media there will be no > read/write devices; for example mounting an SD card with its lock enabled. > This triggers an immediate BUG during mount: > > kernel BUG at .../fs/btrfs/super.c:984! [...] > BugLink: http://bugs

Re: [PATCH 1/2] fs: add SEEK_HOLE and SEEK_DATA flags

2011-04-22 Thread Jonathan Nieder
Hi, Josef Bacik wrote: > This just gets us ready to support the SEEK_HOLE and SEEK_DATA flags. Turns > out > using fiemap in things like cp cause more problems than it solves, so lets try > and give userspace an interface that doesn't suck. So we have That's easy to believe, but could you ela