Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear linux man-pages,

The attached patch adds four ioctls from linux/msdos_fs.h to the
ioctl_list(2) manpage.

The ioctl FAT_IOCTL_GET_ATTRIBUTES reads FAT attributes of a file a
mounted vfat file system.  I tested this on Linux 2.6.33, an example
script can be found at "http://www.perlmonks.com/?node_id=832623";.

The constants are a bit difficult to access, you may need to include
the following headers to get them defined correctly (and the order
matters; and even then they are defined the have the wrong type,
unsigned long instead of int): <sys/types.h> <sys/ioctl.h>
<linux/types.h> <linux/dirent.h> <linux/msdos_fs.h>.  Do you suppose
this should be mentioned in the manpage?

Ambrus
--- ./ioctl_list.2	2010-04-03 17:52:39.000000000 +0200
+++ ./ioctl_list.2	2010-04-03 18:23:31.000000000 +0200
@@ -430,8 +430,17 @@
 0x000089E0	SIOCGETVIFCNT	struct sioc_vif_req *	// I-O
 0x000089E1	SIOCGETSGCNT	struct sioc_sg_req *	// I-O
 .TE
 
+// <include/linux/msdos_fs.h>
+.TS
+l l l l.
+0x82307201	VFAT_IOCTL_READDIR_BOTH	struct dirent [2]
+0x82307202	VFAT_IOCTL_READDIR_SHORT	struct dirent [2]
+0x80047210	FAT_IOCTL_GET_ATTRIBUTES	__u32 *
+0x40047211	FAT_IOCTL_SET_ATTRIBUTES	const __u32 *
+.TE
+
 // <include/linux/mtio.h>
 .TS
 l l l l.
 0x40086D01	MTIOCTOP	const struct mtop *

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux