fix _require_scratch test for extN, resierfs, gfs2, and btrfs
authorTheodore Ts'o <tytso@mit.edu>
Sat, 20 Jun 2009 17:05:45 +0000 (19:05 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Sat, 20 Jun 2009 17:05:45 +0000 (19:05 +0200)
commit74dee07d4a5ddaed9485c11bf6c9b5778edd9a7f
tree6360406a2c68b9eca6dba25323de0d3fb21119de
parent41c40276a4251eefb82bc3140c2c2c43b717f368
fix _require_scratch test for extN, resierfs, gfs2, and btrfs

The extN, reiserfs, gfs2, and btrfs filesysytem types should use the
same check for a block device as XFS and UDF, and not the test for
NFS, which was checking for host:/foo/bar/baz when checking for a
scratch device.

Also, the NFS logic was also incorrect, in that it would allow a
zero-length SCRATCH_DEV to continue.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
common.rc