Skip to content

Commit 001a57d

Browse files
committed
udftune: Add initial implementation
This patch adds a new udftools command/executable, `udftune`. It implements two useful operations: "--mark-ro" and "--mark-rw", for setting FSD and LVID Domain flags in a compatible UDF filesystem to indicate either read-only or read/write characteristics. The code borrows *heavily* from `udflabel`, which contains nearly all of the required logic to modify a UDF target in this manner by itself. Since `udflabel` is to be used for interacting with UDF label information only, `udftune` was created in its current form.
1 parent 77a198f commit 001a57d

File tree

6 files changed

+752
-2
lines changed

6 files changed

+752
-2
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
SUBDIRS = libudffs mkudffs cdrwtool pktsetup udffsck udfinfo udflabel wrudf doc
1+
SUBDIRS = libudffs mkudffs cdrwtool pktsetup udffsck udfinfo udflabel udftune wrudf doc
22
dist_doc_DATA = AUTHORS COPYING NEWS README
33
EXTRA_DIST = autogen.sh Doxyfile

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ AC_SUBST(LTLIBOBJS)
4141

4242
AM_CONDITIONAL(USE_READLINE, test "$readline_found" = "yes")
4343

44-
AC_CONFIG_FILES(Makefile libudffs/Makefile mkudffs/Makefile cdrwtool/Makefile pktsetup/Makefile udffsck/Makefile udfinfo/Makefile udflabel/Makefile wrudf/Makefile doc/Makefile)
44+
AC_CONFIG_FILES(Makefile libudffs/Makefile mkudffs/Makefile cdrwtool/Makefile pktsetup/Makefile udffsck/Makefile udfinfo/Makefile udflabel/Makefile udftune/Makefile wrudf/Makefile doc/Makefile)
4545

4646
AC_OUTPUT

udftune/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sbin_PROGRAMS = udftune
2+
udftune_LDADD = $(top_builddir)/libudffs/libudffs.la
3+
udftune_SOURCES = main.c options.c ../udfinfo/readdisc.c options.h ../udfinfo/readdisc.h ../include/ecma_167.h ../include/osta_udf.h ../include/libudffs.h
4+
AM_CPPFLAGS = -I$(top_srcdir)/include

0 commit comments

Comments
 (0)