All of lore.kernel.org
 help / color / mirror / Atom feed
From: apawar.linux@gmail.com (Abhijit Pawar)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Get USB Device Class Type and Mount point
Date: Mon, 13 Feb 2012 18:01:05 +0530	[thread overview]
Message-ID: <4F390289.90708@gmail.com> (raw)
In-Reply-To: <CAC+QLdS0cYmgtLSXYG=E5JRrjdrRjS084rVHngfDBqkyfD_13w@mail.gmail.com>

On 02/13/2012 05:51 PM, Mandeep Sandhu wrote:
>>>>> greg k-h
>>>> I am trying to find out if any storage disk is connected to USB port
>>>> and get its mount so that I an encrypt that mount with encrypted
>>>> filesystem.
>>> Great, then do that from userspace, like it is done today.  Or do you
>>> have a problem with how things are done today with encrypted
>>> filesystems?  If so, why?
>>>
>>> greg k-h
>>>
>>> _______________________________________________
>>> Kernelnewbies mailing list
>>> Kernelnewbies at kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>> Hi Greg,
>> The  reason I went for kernel module is to get the device add
>> notification. However once I get the notification, I can have netlink
> Well, thats not a good enough reason to go to kernel space! :)
>
> Have you looked at Udev? It nicely handles device attach/detach events
> (hotplug events) from userspace. You should probably look at using it
> for your purpose.
>
> http://en.wikipedia.org/wiki/Udev
>
> HTH,
> -mandeep
>
Yes. I should have looked into libudev and libsysfs which I am doing now. :)
Regarding going to kernel , I thought that would be help me in 
controlling the device in a better way (where I can enable or disable 
the data transfer interfaces  preventing the data copy (if at all thats 
possible).

Regards,
Abhijit Pawar

  reply	other threads:[~2012-02-13 12:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09  6:10 Get USB Device Class Type and Mount point Abhijit Pawar
2012-02-09  6:22 ` Abhijit Pawar
2012-02-09 12:23 ` Greg KH
2012-02-09 13:48   ` Abhijit Pawar
2012-02-09 14:47     ` Greg KH
2012-02-10 13:49       ` Abhijit Pawar
2012-02-10 14:12         ` Greg KH
2012-02-13 12:14       ` Abhijit Pawar
2012-02-13 12:21         ` Mandeep Sandhu
2012-02-13 12:31           ` Abhijit Pawar [this message]
2012-02-13 15:02         ` Greg KH
2012-02-14 11:38           ` Abhijit Pawar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F390289.90708@gmail.com \
    --to=apawar.linux@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.