Search:

Type: Posts; User: amit_sahrawat

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,646

    try specifying the Library path by using -L flag...

    try specifying the Library path by using -L flag to gcc
  2. Thanks Mats, I think I can manage with the...

    Thanks Mats,

    I think I can manage with the blkid thing, there's a file in /etc/blkid.tab, an entry gets added to this... I can read the file type from this.

    again Thanks...

    Regards,
    Amit...
  3. strace output show that it does some reading from...

    strace output show that it does some reading from the device itself...

    It does some lseek(), read and then simply doing the mount()...

    I tried by doing the same... but not able to extract the...
  4. I tried by passing NULL in the mount() api like...

    I tried by passing NULL in the mount() api like this

    mount("/dev/sda1","/mnt/usb",NULL,MS_NODIRATIME | MS_NOATIME, NULL);
    it does not work,
    however, by doing this from command line like
    mount...
  5. Need to know the filesystem on /dev/sda1

    hi,
    I need to know the filesystem on /dev/sda1 i.e. on the usb pen drive. I tried by taking a look at the output of "strace mount /dev/sda1 /mnt/usb" but am not able to understand.
    I need this...
  6. Replies
    2
    Views
    4,053

    got it ... yups it has to be year -1900, and so...

    got it ... yups it has to be year -1900, and so is for other values...

    Thanks,
    Amit Sahrawat
  7. Replies
    2
    Views
    4,053

    error using mktime

    I am trying to get a time_t structure value from mktime() but it returns (time_t)-1.
    I am doing something like this:
    struct tm tv;
    time_t timvar;
    memset() for both the variables:
    tv.tm_year =...
  8. Replies
    5
    Views
    6,349

    On my system, I have this d_type under the...

    On my system, I have this d_type under the compile time flag __USD_BSD, just check dirent.h in /usr/include.
    To get the the file type I have been using stat().
    To get the file system statfs() can...
  9. Replies
    3
    Views
    2,071

    If u really need this kind of thing, you can...

    If u really need this kind of thing, you can create pipe(write/read values from that pipe) and use that for proper values, but that will involved extra overhead.

    Regards,
    Amit Sahrawat
  10. Replies
    9
    Views
    4,063

    anyways I would have to somehow create a listener...

    anyways I would have to somehow create a listener thread on /sys/block and look out for the 'removable=1' option to get the the removable drives, rest I need to look further...

    neways thanks..
    ...
  11. Replies
    15
    Views
    3,932

    There's an entry in /proc/sys/kernel/threads-max,...

    There's an entry in /proc/sys/kernel/threads-max, may be that is what is needed ?

    Regards,
    Amit Sahrawat
  12. Replies
    9
    Views
    4,063

    Now I have plugged in my Pen drive, but there is...

    Now I have plugged in my Pen drive, but there is still no entry in /proc/bus/usb...

    But, I got something which might be useful...
    /sys/block/sda/

    An entry gets created each time(addition)...
  13. Replies
    9
    Views
    4,063

    Some how I am not getting any entry in...

    Some how I am not getting any entry in /proc/bus/usb, I am plugging in USB hub device with once CARD. So, I suppose I should get an entry into that...
    and I am not able to understand the...
  14. Replies
    9
    Views
    4,063

    I need some point in my task where I can get...

    I need some point in my task where I can get messages like whether device is added/removed. On each addition/removed I need to keep track of these devices and browse them.
    So, how do we do that...
  15. Replies
    9
    Views
    4,063

    Need drives information on linux

    hi all,
    I need information regarding the Drives on linux, just like the information provided by ::GetLogicalDrives & ::GetDriveType on Windows.
    Please help me out if u have any idea, basically I...
Results 1 to 15 of 15