| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: XFS Test Case:252 - Shows Wrong Output |
| From: | Amit Sahrawat <amit.sahrawat83@xxxxxxxxx> |
| Date: | Thu, 23 Jun 2011 16:27:52 +0530 |
| Cc: | Allison Henderson <achender@xxxxxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=i5NZJhsJFBvlTLnRd0ajrUtUG5/qadxCM0jVdf0/iTg=; b=fkRq/XRmlm7GVeH6dwek4ddlIP3BdN9DswBnyYAJQZU9L6FiN6hEcAodmImNOolWIU dKTPJgLvftvOlWg3sg/Ay5UScjNSDC9my6//GyJJM8GwqiPVKaNtMbkWoT/yFhKA3W0S 07F4ytSYBMoRQiqzrNj7R4gTFAnF3QHBEzVnA= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=PSpziVEBFl9ILYddZZ+GWTE1tcccqNWbQxzUwB9Rzkwl/PpDIOGRdQZA/XW7WVXSZP 2fcET5pw8RckSfW2lRbtDbCuZioVVYVNxSIw/DBfG/aaEm6dtUV4JegJOFuDB8x4G5zr 5xPM38jHZ/Cm0swWBON/khLF+Peg7VJ9WckSw= |
| In-reply-to: | <BANLkTi=2rTU2R_hGGeMhLYzM6FKPOW0L8w@xxxxxxxxxxxxxx> |
| References: | <BANLkTinBNa9ox+jDaorBoKdhoQQzTUA58A@xxxxxxxxxxxxxx> <BANLkTi=wHAxYuLE33AVsc2rp0eEm5GB40w@xxxxxxxxxxxxxx> <4E022818.7030406@xxxxxxxxxxxxxxxxxx> <BANLkTimuv183W0ef0aYCySWPnv9rLqNuww@xxxxxxxxxxxxxx> <20110623062030.GY32466@dastard> <BANLkTi=2rTU2R_hGGeMhLYzM6FKPOW0L8w@xxxxxxxxxxxxxx> |
|
This is linked with new feature.. Add punch support, although the code existed before also, but the 'punch' has been specifically handled through cmd = XFS_IOC_UNRESVP. Also, fallocate is moved out from 'xfs_iops.c' to 'file operations' in xfs_file.c, which handles the case for
if (mode & ~(FALLOC_FL_KEEP_SIZE | FALLOC_FL_PUNCH_HOLE)) return -EOPNOTSUPP; ... if(mode & FALLOC_FL_PUNCH_HOLE)
cmd = XFS_IOC_UNRESVSP; ... Now, for old kernels, how to make sure that this test case does not execute or return meaningful error? without changing the kernel code it will not return error; Since, FALLOC_FL_KEEP_SIZE this is true and the command work with XFS_IOC_RESVP.
Please suggest. Thanks & Regards, Amit Sahrawat On Thu, Jun 23, 2011 at 12:06 PM, Amit Sahrawat <amit.sahrawat83@xxxxxxxxx> wrote:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: duplicate code in dir2, Christoph Hellwig |
|---|---|
| Next by Date: | Re: duplicate code in dir2, Christoph Hellwig |
| Previous by Thread: | Re: XFS Test Case:252 - Shows Wrong Output, Amit Sahrawat |
| Next by Thread: | Re: XFS Test Case:252 - Shows Wrong Output, Amit Sahrawat |
| Indexes: | [Date] [Thread] [Top] [All Lists] |