Commit Graph

75 Commits

Author SHA1 Message Date
Eric Sandeen 84567e4977 Drop the xfs-specific MAXNAMELEN in favor of the Posix NAME_MAX
This makes it easier to lose libxfs.h later.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2009-05-28 11:35:56 -05:00
Christoph Hellwig 68f67d9c74 fix compiler warnings
Include all nessecary headers, use the correct format strings and don't
redefine _GNU_SOURCE.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
2008-12-31 12:52:05 +01:00
Donald Douwsma 36763daef8 fix XFSQA 145 / test_hole
There are two errors I see all the time in 145:

 - dm_probe_hole returns EINVAL for offsets close to the file size
 - dm_probe_hole wants EAGAIN for a probe at offset 1, length 0


The first error is a consequence of how the hole puching / probing
works.  It always rounds the requested offset up to the next block
size and then checks if that rounded offset still fits into the file
size.  Just do the same rounding in the testcase to make sure we don't
probe invalid offsets.

The second error is very odd to me, as we never return AGAIN in the
whole dm_probe_hole path.  I've just commented it out.

I've also re-enabled the E2BIG to past-EOF test that was uncommented
before because it works perfectly fine now.


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:31330a by kenmcd.

  fix XFSQA 145 / test_hole
2008-06-18 16:09:09 +00:00
Donald Douwsma 7d8939d27c Fix XFSQA test 144
Two really dumb bugs:

 - "foo & 0x3FFFFFFFFFFFF" doesn't cap at 1TB, but rather at more than
   two magnitudes larger than that.  That gets us EFBIG with typical
   32bit XFS setups.
 - the command array can easily overflow and thus let the test fail


Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:31327a by kenmcd.

  Fix XFSQA test 144
2008-06-18 16:08:20 +00:00
Tim Shimmin f7e9207c9d regenerate dmapi Makefile in using automake
Merge of master-melb:xfs-cmds:31014a by kenmcd.

  regenerate using aclocal
2008-05-01 16:34:55 +00:00
Dave Chinner 9b1a4bd08e xfsqa 185 shouldn't have uninitialised variables in the golden output
Kill the output of uninitialised values when punching a hole.
This prevents the test from passing on just about everything.
Merge of master-melb:xfs-cmds:30762a by kenmcd.

  remove roffp and rlenp output for punch operations.
2008-04-08 06:20:04 +00:00
Niv Sardi 9a3b0f6db9 Finish TAKE, the last one lacked the Makefile modifications.
Merge of master-melb:xfs-cmds:30720a by kenmcd.
2008-03-27 03:18:28 +00:00
Niv Sardi 98df5b85a7 xfstests: add test 185, Dmapi Punch/Probe Alignment compared to xfsctl(FREESPACE),
tests PV 976771, by trying to punch a hole that's not page aligned but block aligned
Merge of master-melb:xfs-cmds:30582a by kenmcd.

  New QA test
2008-02-27 03:20:18 +00:00
Vlad Apostolov 709c7a80fd Fix unexpected 32 bit sign extension for linux time. It was fine for Irix.
Merge of master-melb:xfs-cmds:29738a by kenmcd.

  pv 964111, rv lacklan - Fix unexpected 32 bit sign extension for linux time. It was fine for Irix.
2007-09-21 04:15:06 +00:00
Vlad Apostolov 1150f6c3ba pv 968773, author Chris Pascoe <c.pascoe@itee.uq.edu.au>, rv vapo - minor fixes for XFS DMAPI tests
Merge of master-melb:xfs-cmds:29348a by kenmcd.

  pv 968773, author Chris Pascoe <c.pascoe@itee.uq.edu.au>, rv vapo - minor fixes for XFS DMAPI tests
2007-08-08 07:54:05 +00:00
Vlad Apostolov a579284225 pv 964111, rv lachlan - > attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate the string */
Merge of master-melb:xfs-cmds:29347a by kenmcd.

  pv 964111, rv lachlan - terminate attribute name string
2007-08-08 07:53:19 +00:00
Lachlan McIlroy d671606385 Fix build failure.
Merge of master-melb:xfs-cmds:29235a by kenmcd.

  Fix build failure.
2007-07-26 21:25:32 +00:00
Vlad Apostolov fbdf0823b5 XFSQA test 144 fails again on tot linux_xfs
Merge of master-melb:xfs-cmds:28113a by kenmcd.

  pv 961215, rv allanr - replacing fsync() with global sync()
2007-02-16 02:59:54 +00:00
Vlad Apostolov 1446a39125 Fix menu items order
Merge of master-melb:xfs-cmds:28083a by kenmcd.

  Fix menu items order
2007-02-13 02:54:16 +00:00
Allan Randall e0015c93d0 Dmapi build fix
Merge of master-melb:xfs-cmds:27826a by kenmcd.

  added default make option
2007-01-02 14:38:56 +00:00
Allan Randall 2178b18ed3 add file required by dmapi qa
Merge of master-melb:xfs-cmds:27768a by kenmcd.

  file required by dmapi qa
2006-12-19 02:56:20 +00:00
Vlad Apostolov 11cced490a 955274: DMAPI qa test fixes
Merge of master-melb:xfs-cmds:27241a by kenmcd.

  avoid negative number LONG_MAX + 1
2006-10-19 06:08:45 +00:00
Vlad Apostolov c6412978e7 pv 955274 - Print out hex instead of char for non-printable characters.
Merge of master-melb:xfs-cmds:27095a by kenmcd.

  pv 955274 - Print out hex instead of char for non-printable characters.
2006-10-02 15:47:47 +00:00
Vlad Apostolov fba6c12448 pv 955274 - Limit the offset passed to dm_write_invis() to the file size to avoid
EINVAL error. Fix u_char to char comparison. Print out hex instead of
char for nonprintable characters.
Merge of master-melb:xfs-cmds:27094a by kenmcd.

  pv 955274 - Limit the offset passed to dm_write_invis() to the file size to avoid 
  EINVAL error. Fix u_char to char comparison. Print out hex instead of 
  char for nonprintable characters.
2006-10-02 15:47:03 +00:00
Vlad Apostolov f3982a5a7e pv 955274 - Fix random test failures due to u_char to char type mismatch comparison.
Merge of master-melb:xfs-cmds:27090a by kenmcd.

  pv 955274 - Fix random test failures due to u_char to char type mismatch comparison.
2006-10-02 03:55:04 +00:00
Vlad Apostolov 8b4e94540c pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkattr().
Merge of master-melb:xfs-cmds:27061a by kenmcd.

  pv 955274 - Requires fsync() after a file attribute change. This is for dm_get_bulkattr().
2006-09-27 06:07:54 +00:00
Vlad Apostolov 817207981e pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)
Merge of master-melb:xfs-cmds:27060a by kenmcd.

  pv 955274 - Limit the random generated file size attribute to 1 TB (if size is too big the kernel panics)
2006-09-27 06:07:10 +00:00
Vlad Apostolov d4f2f54689 pv 955274, rv bnaujok - add 1sec delay between file creation and changing its
attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't
change between create and dm_set_dmattr() and the test fails.
Merge of master-melb:xfs-cmds:26870a by kenmcd.

  pv 955274, rv bnaujok - add 1sec delay between file creation and changing its
  attribute via dm_set_dmattr(). If the machine is too fast the ctime doesn't
  change between create and dm_set_dmattr() and the test fails.
2006-08-28 03:52:59 +00:00
Bob Kierski e664e8508a Fix atohan to verify a valid hex string is being used for a handle.
atohan needs to verify that the string being passed in is actually a
valid hex string before it assumes that it's a file handle rather than
a file name.
PV 951244
2006-03-23 15:45:54 +00:00
Nathan Scott d259454b19 Update copyright annotations and license boilerplates to correspond with SGI Legals preferences.
Merge of master-melb:xfs-cmds:24329a by kenmcd.
2005-11-09 02:50:19 +00:00