socsvn commit: r238608 - soc2012/oleksandr/udf-head/sbin/mount_udf2

oleksandr at FreeBSD.org oleksandr at FreeBSD.org
Fri Jun 29 21:32:11 UTC 2012


Author: oleksandr
Date: Fri Jun 29 21:32:08 2012
New Revision: 238608
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238608

Log:
  comment unused function

Modified:
  soc2012/oleksandr/udf-head/sbin/mount_udf2/mount_udf.c

Modified: soc2012/oleksandr/udf-head/sbin/mount_udf2/mount_udf.c
==============================================================================
--- soc2012/oleksandr/udf-head/sbin/mount_udf2/mount_udf.c	Fri Jun 29 21:15:53 2012	(r238607)
+++ soc2012/oleksandr/udf-head/sbin/mount_udf2/mount_udf.c	Fri Jun 29 21:32:08 2012	(r238608)
@@ -63,7 +63,6 @@
 #include <fcntl.h>
 
 #include "mntopts.h"
-//#include "fs/udf2/udf_mount.h"
 #include "udf2/udf_mount.h"
 
 
@@ -74,10 +73,10 @@
 };
 
 static int set_charset(char **, char **, const char *);
-static void getlastblock(char *dev, struct udf_session_info *usi, 
-   			 int session_num);
+//static void getlastblock(char *dev, struct udf_session_info *usi, 
+//   			 int session_num);
 static void usage(void);
-static void print_session_info(char *dev, int session_num);
+//static void print_session_info(char *dev, int session_num);
 
 int
 main(int argc, char **argv)
@@ -112,9 +111,9 @@
 			if (optarg == endp || *endp != '\0')
 				usage();	
 			break;
-		case 'p':
+		/*case 'p':
 			sessioninfo = 1;	
-			break;
+			break; */
 		case '?':
 		default:
 			usage();
@@ -122,12 +121,13 @@
 	argc -= optind;
 	argv += optind;
 
+#if 0	
 	if (sessioninfo) {
 		if (argc != 1)
 			usage();
 		print_session_info(argv[0], session_num);
 	}
-
+#endif
 	if (argc != 2)
 		usage();
 
@@ -145,7 +145,7 @@
 	/*
 	 * Get session info from device
 	 */
-	getlastblock(dev, &usi, session_num);
+/*	getlastblock(dev, &usi, session_num); */
 
 	/*
 	 * UDF file systems are not writeable.
@@ -173,6 +173,7 @@
 	iov[i].iov_base = &udf_flags;
 	iov[i++].iov_len = sizeof(udf_flags);
 
+#if 0
 	iov[i].iov_base = "first_trackblank";
 	iov[i++].iov_len = sizeof("first_trackblank");
 	first_trackblank = 0;
@@ -188,6 +189,7 @@
 	iov[i++].iov_len = sizeof("session_end_addr");
 	iov[i].iov_base = &usi.session_end_addr;
 	iov[i++].iov_len = sizeof(uint32_t);
+#endif	
 
 	if (udf_flags & UDFMNT_KICONV) {
 		iov[i].iov_base = "cs_disk";
@@ -228,6 +230,7 @@
 	return (0);
 }
 
+#if 0
 static void
 getlastblock(char *dev, struct udf_session_info *usi, int session_num)
 {
@@ -274,6 +277,7 @@
 
 	exit(0);
 }
+#endif
 
 static void
 usage(void)


More information about the svn-soc-all mailing list