How to get device name with device id?

ashish mahamuni ashitpro at yahoo.co.in
Thu Mar 20 10:51:04 UTC 2008


Hi all,

I want to open a device(/dev/sda1, /dev/hda2 etc) in which my file exists.
I've used 'stat' system call to get the device id.

But now I want the device name from this id(st_dev).
How to get that one?
Or 
Do you have any other method to know the device name where my file resides?

Thanks 


      Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups  





More information about the Ext3-users mailing list