All of lore.kernel.org
 help / color / mirror / Atom feed
* have ioctls changed?
@ 2015-11-17  1:36 Marc Lehmann
  2015-11-17  2:34 ` Chao Yu
  2015-11-17  3:45 ` Marc Lehmann
  0 siblings, 2 replies; 3+ messages in thread
From: Marc Lehmann @ 2015-11-17  1:36 UTC (permalink / raw)
  To: linux-f2fs-devel

Hi!

While trying the new f2fs snapshot (3.18 branch from yesterday), I found that
my GC script does no longer work:

   ioctl(0, 0xf506, 0x1741810)             = -1 ENOTTY (Inappropriate ioctl for device)

fd#0 is from open ("/mountpoint",...). I didn't upgrade kernels or
anything else - the script works with the module I previously used.

So, have the ioctls changed recently, or some detail about them?

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: have ioctls changed?
  2015-11-17  1:36 have ioctls changed? Marc Lehmann
@ 2015-11-17  2:34 ` Chao Yu
  2015-11-17  3:45 ` Marc Lehmann
  1 sibling, 0 replies; 3+ messages in thread
From: Chao Yu @ 2015-11-17  2:34 UTC (permalink / raw)
  To: 'Marc Lehmann', linux-f2fs-devel

Hi,

> -----Original Message-----
> From: Marc Lehmann [mailto:schmorp@schmorp.de]
> Sent: Tuesday, November 17, 2015 9:37 AM
> To: linux-f2fs-devel@lists.sourceforge.net
> Subject: [f2fs-dev] have ioctls changed?
> 
> Hi!
> 
> While trying the new f2fs snapshot (3.18 branch from yesterday), I found that
> my GC script does no longer work:
> 
>    ioctl(0, 0xf506, 0x1741810)             = -1 ENOTTY (Inappropriate ioctl for device)
> 
> fd#0 is from open ("/mountpoint",...). I didn't upgrade kernels or
> anything else - the script works with the module I previously used.

We didn't change the main interface (0xf506) of ioctl for GC, but did change
the usage of parameter passed of it.

So, firstly, could you please check whether below commits exist in your
branch:
- c1c1b58359d4 ("f2fs: add new ioctl F2FS_IOC_GARBAGE_COLLECT")
- d530d4d8e237 ("f2fs: support synchronous gc in ioctl")

Then, if it exists, I think it's better to check the real file opened which
fd#0 points to since I'm not sure this file is belong to f2fs.

Thanks,

> 
> So, have the ioctls changed recently, or some detail about them?
> 
> --
>                 The choice of a       Deliantra, the free code+content MORPG
>       -----==-     _GNU_              http://www.deliantra.net
>       ----==-- _       generation
>       ---==---(_)__  __ ____  __      Marc Lehmann
>       --==---/ / _ \/ // /\ \/ /      schmorp@schmorp.de
>       -=====/_/_//_/\_,_/ /_/\_\
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel


------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: have ioctls changed?
  2015-11-17  1:36 have ioctls changed? Marc Lehmann
  2015-11-17  2:34 ` Chao Yu
@ 2015-11-17  3:45 ` Marc Lehmann
  1 sibling, 0 replies; 3+ messages in thread
From: Marc Lehmann @ 2015-11-17  3:45 UTC (permalink / raw)
  To: linux-f2fs-devel

On Tue, Nov 17, 2015 at 02:36:35AM +0100, Marc Lehmann <schmorp@schmorp.de> wrote:
> While trying the new f2fs snapshot (3.18 branch from yesterday), I found that
> my GC script does no longer work:
> 
>    ioctl(0, 0xf506, 0x1741810)             = -1 ENOTTY (Inappropriate ioctl for device)

Very strange, after much experimenting I deleted my f2fs checkout again
(I did "git pull" before and git log showed the correct changes, also the
ioctls were defined in the header files) and did a fresh checkout, and
that kernel module works.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-17  3:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17  1:36 have ioctls changed? Marc Lehmann
2015-11-17  2:34 ` Chao Yu
2015-11-17  3:45 ` Marc Lehmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.