JP2012181672A - Data processor - Google Patents
Data processor Download PDFInfo
- Publication number
- JP2012181672A JP2012181672A JP2011044100A JP2011044100A JP2012181672A JP 2012181672 A JP2012181672 A JP 2012181672A JP 2011044100 A JP2011044100 A JP 2011044100A JP 2011044100 A JP2011044100 A JP 2011044100A JP 2012181672 A JP2012181672 A JP 2012181672A
- Authority
- JP
- Japan
- Prior art keywords
- time stamp
- file
- writing
- time
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Abstract
Description
本発明はデータ処理装置に関し、特に、内部に時計等の計時機能を有しない場合でも、外部記録メディアに記録したファイル/ディレクトリの相互の順序性が確保できるデータ処理装置に関する。 The present invention relates to a data processing apparatus, and more particularly, to a data processing apparatus that can ensure the mutual order of files / directories recorded on an external recording medium even when it does not have a timekeeping function such as a clock.
近年の情報端末装置の多くは、通信ネットワークを介して受信したコンテンツや外部メディアに記録されたコンテンツの情報を再生する機能を備えている。このような装置の多くは、小型で軽量であり、コンテンツ情報を予め格納しておくためのメモリを内蔵しているだけではなく、SDメモリ等の外部記録メディアに格納されているコンテンツの情報を再生させるためのスロット等も設けられているから、ユーザはこの情報端末装置を持ち運び、場所を選ぶことなく楽曲や映像を含む好みのコンテンツ情報を再生することができる。 Many of the information terminal devices in recent years have a function of reproducing information of content received via a communication network or content recorded on an external medium. Many of such devices are small and light, and not only have a built-in memory for storing content information in advance, but also store content information stored in an external recording medium such as an SD memory. Since a slot or the like for reproduction is also provided, the user can carry the information terminal device and reproduce favorite content information including music and video without selecting a place.
一般に、タイムスタンプには、通常、時刻サーバから取得した時刻データや、情報端末装置等に内蔵されている内部時計が示す時刻データが用いられる。そして、情報端末装置等によりファイル(或いはディレクトリ)の作成や更新を行うと、その都度、ファイルシステムがこれらの操作が行われた日時を示す情報としてのタイムスタンプが付され、これがファイル属性として記録される。 Generally, time data acquired from a time server or time data indicated by an internal clock built in an information terminal device or the like is used for the time stamp. Each time a file (or directory) is created or updated by an information terminal device or the like, a time stamp is added as information indicating the date and time when these operations were performed by the file system, and this is recorded as a file attribute. Is done.
従って、一般的には、情報端末装置等により通信ネットワークを介してコンテンツを受信してこれを新たなファイルとしてメモリに格納したりSDメモリ等の外部記録メディアに記録されているコンテンツ情報を上書き等したものを別のファイルとして外部記録メディアに記録したような場合には、当該ファイルに付与されるタイムスタンプは、メモリ内で最新のものとなり、ファイル(ディレクトリ)の順序性が確保されることとなる。 Therefore, in general, content is received via a communication network by an information terminal device or the like, and this is stored as a new file in a memory or content information recorded on an external recording medium such as an SD memory is overwritten. When the recorded file is recorded on an external recording medium as a separate file, the time stamp assigned to the file is the latest in the memory, and the order of the files (directories) is ensured. Become.
しかし、計時機能を有する情報端末装置等が外部電源から切断されて用いられる利用形態のものである場合、内部時計の時刻を常に正しい時刻に保持して正確なタイプスタンプの付与を担保しようとすると、内部時計の時刻調整用のバックアップ電源が必要となるが、このような電源を設けることには、装置のコストアップ等の弊害が生じるという問題がある(特許文献1:特開2007-279053号公報の背景技術の項を参照)。 However, when an information terminal device having a timekeeping function is used in a form of use that is disconnected from an external power source, the time of the internal clock is always kept at the correct time and an attempt is made to guarantee the correct stamping. However, a backup power supply for adjusting the time of the internal clock is required. However, the provision of such a power supply has a problem in that an adverse effect such as an increase in cost of the apparatus occurs (Patent Document 1: Japanese Patent Laid-Open No. 2007-279053). See the background section of the publication).
また、このような問題を解決するために、特許文献1に開示されているように、時刻サーバから正しく時刻情報が取得されたか否かを判定する機能を装置にもたせたとしても、時刻情報が正しく取得されていないと判定された場合には、予め規定されたデフォルト時刻値がタイムスタンプとして用いられてファイルの保存が行われることとなるから、該処理の日時とは無関係なタイムスタンプが付与することとなり、ファイル(ディレクトリ)の順序性を確保することができない。
In order to solve such a problem, as disclosed in
このように、従来技術によっては、計時機能を有しない情報端末装置等において、内蔵メモリや外部記録媒体内に、コンテンツ情報を新たなファイルとして記録したり別のファイルとして記録した場合には、ファイル(ディレクトリ)の順序性を確保することは困難である。 In this way, depending on the conventional technology, in an information terminal device or the like that does not have a timekeeping function, when content information is recorded as a new file or as a separate file in the internal memory or an external recording medium, It is difficult to ensure the order of the (directory).
本発明は、このような従来技術の問題に鑑みてなされたものであり、その目的とするところは、計時機能自体を有しない乃至は計時機能が不全状態のデータ処理装置であっても、新規ファイル(ディレクトリ)の書き込み後の記録メディア内でファイル(ディレクトリ)の順序性を確保し得るデータ処理装置を提供することにある。 The present invention has been made in view of such problems of the prior art, and the object of the present invention is to provide a novel data processing apparatus that does not have a timekeeping function itself or is a data processing device in which the timekeeping function is in an incomplete state. An object of the present invention is to provide a data processing apparatus capable of ensuring the order of files (directories) in a recording medium after the writing of files (directories).
上記目的を達成するために、本発明の第1の態様のデータ処理装置は、外部記憶媒体の挿入を検出するメディア検出部と、前記外部記憶媒体のファイルシステムを解析するファイルシステム解析部と、前記外部記憶媒体に格納された各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部と、前記各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部と、新規の書込イベントが発生した際に前記最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部と、前記新規の書込イベントのファイルに前記所定の時間を加算した書込用タイムスタンプを付与して前記外部記憶媒体に格納するデータ書込部と、を備えている。 To achieve the above object, a data processing apparatus according to a first aspect of the present invention includes a media detection unit that detects insertion of an external storage medium, a file system analysis unit that analyzes a file system of the external storage medium, A time stamp detecting unit for detecting time stamp information of each file stored in the external storage medium; and a writing time stamp holding unit for storing the latest time stamp among the time stamps assigned to the files. A fixed time value adding unit that updates a write time stamp by adding a predetermined time to the latest time stamp when a new write event occurs, and the predetermined time value in the new write event file And a data writing unit that stores a time stamp for writing to the external storage medium.
また、本発明の第2の態様のデータ処理装置は、内部時計と、前記内部時計に電力供給するバッテリと、前記バッテリから前記内部時計への電力供給をモニタするバッテリモニタと、外部記憶媒体の挿入を検出するメディア検出部と、前記外部記憶媒体のファイルシステムを解析するファイルシステム解析部と、前記外部記憶媒体に格納された各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部と、前記各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部と、新規の書込イベントが発生した際に前記最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部と、前記バッテリモニタにより前記バッテリから前記内部時計への電力供給が検知されない場合に前記新規の書込イベントのファイルに前記所定の時間を加算した書込用タイムスタンプを付与して前記外部記憶媒体に格納するデータ書込部と、を備えている。 According to a second aspect of the present invention, there is provided a data processing device comprising: an internal clock; a battery that supplies power to the internal clock; a battery monitor that monitors power supply from the battery to the internal clock; and an external storage medium A media detection unit that detects insertion; a file system analysis unit that analyzes a file system of the external storage medium; a time stamp detection unit that detects time stamp information of each file stored in the external storage medium; A writing time stamp holding unit for storing the latest time stamp of the time stamps assigned to the file, and when a new writing event occurs, the predetermined time is added to the latest time stamp. A fixed time value adding unit for updating a built-in time stamp, and power from the battery to the internal clock by the battery monitor. Supply is and a data writing unit for storing in said external storage medium by applying the write timestamp said adding new predetermined time writing event files when not detected.
本発明によれば、計時機能自体を有しない乃至は計時機能が不全状態のデータ処理装置であっても、新規ファイル(ディレクトリ)の書き込み後の記録メディア内でファイル(ディレクトリ)の順序性を確保することが可能となる。 According to the present invention, the order of files (directories) is ensured in a recording medium after writing a new file (directory) even if the data processing device does not have the timekeeping function itself or the time measuring function is in an incomplete state. It becomes possible to do.
以下に、図面を参照しながら、本発明の実施の形態におけるデータ処理装置について説明する。なお、以下の説明では本発明のデータ処理装置に挿入可能な外部記録媒体をSDカードとして説明するが、これに限らず、USBメモリやCDあるいはDVD等の他のメディアであってもよい。また、以下の説明で用いられる「ファイル」なる文言は、「ディレクトリ」も包含する意味で用いられている。 Hereinafter, a data processing apparatus according to an embodiment of the present invention will be described with reference to the drawings. In the following description, the external recording medium that can be inserted into the data processing apparatus of the present invention is described as an SD card. However, the present invention is not limited to this, and other media such as a USB memory, a CD, or a DVD may be used. Further, the term “file” used in the following description is also used to include “directory”.
[第1の実施態様]
図1は、本発明の実施の形態1におけるデータ処理装置100のブロック図である。このデータ処理装置100は、外部記憶媒体であるSDカード300を挿入するスロット(不図示)と、該スロットへのSDカード300の挿入を検出するメディア検出部としてのSDカード検出部10と、SDカード300のファイルシステムを解析するファイルシステム(FS)解析部20と、SDカード300に格納されている各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部30と、上記の各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部40と、ユーザ操作等によりSDカード300に新規にデータを書込むイベントが発生した際に上述の最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部50と、新規の書込イベントのファイルに対して上記所定の時間を加算した書込用タイムスタンプを付与してSDカード300に格納するデータ書込部60とを備えている。
[First Embodiment]
FIG. 1 is a block diagram of a
なお、ユーザがSDカード300に新規データを書込む処理が不図示のタッチパネル等から行われると、当該新規データは書込データ送出部70からデータ書込部60へと出力され、上述の所定時間が加算された書込用タイムスタンプが当該新規データに対応付けられて、SDカード300内に書込みされる。
When the process of writing new data to the
図2は、本発明の実施の形態1におけるデータ処理装置100が行う処理のフローチャートである。先ず、データ処理装置100が起動すると、SDカード検出部10がスロットにSDカード300が挿入されているか否かを判断する(S201)。
FIG. 2 is a flowchart of processing performed by the
SDカード検出部10がSDカード300の検出信号(S2)を検出しない場合は(S201:No)、当該検出を継続する。SDカード検出部10がSDカード300の検出信号(S2)を検出すると(S201:Yes)、ファイルシステム(FS)解析部20が当該SDカード300のファイルシステムを解析し、SDカード300内に格納されている全てのファイルにつきファイル情報を取得してファイル管理情報(S4)としてタイムスタンプ検出部30へと送出する(S202)。
When the SD
例えば、図3に示したように、SDカード300内に5つの楽曲データがオーディオファイルとして格納されているとすると、FS解析部20は、これらの5つのファイルの情報を順次取得する。図3に示した例では、各ファイルはタイムスタンプ(更新日時)の古い順でリストされているから、これら5つのファイルの情報は、タイムスタンプ(更新日時)の古い順から順次取得される。
For example, as shown in FIG. 3, if five pieces of music data are stored as audio files in the
図3に示した例では、最初に「ABC」とタイトル付けされたファイル情報の取得がなされ、そのファイル情報がタイムスタンプ検出部30へと送られて、当該ファイル情報の一部であるタイムスタンプ(更新日時)が検出され、タイムスタンプ情報(S5)として書込用タイムスタンプ保持部40へと送出される(S203)。
In the example shown in FIG. 3, the file information first titled “ABC” is acquired, and the file information is sent to the time
タイトル「ABC」のファイルの場合、そのタイムスタンプ(更新日時)は「2009年11月30日12時12分」であり、この日付情報(タイムスタンプ情報)がタイムスタンプ検出部30により検出され、このタイムスタンプ情報が書込用タイムスタンプ保持部40へと送出され、書込用タイムスタンプとして保持されることになる。
In the case of the file of the title “ABC”, the time stamp (update date / time) is “November 30, 2009, 12:12”, and this date information (time stamp information) is detected by the time
FS解析部20は、SDカード300内の5つのファイルのすべてにつきファイル情報の読出が終了したかを判断し(S204)、読出未了のファイルがあれば(S204:No)、ステップS202に戻って以降の処理を繰り返す。
The
図3の例であれば、タイトル「ABC」のファイル情報の取得に続き、タイトル「DEF」のファイル情報の取得が行われ(S202)、当該ファイル情報がタイムスタンプ検出部30へと送られて、そのタイムスタンプ(更新日時)が検出され、「2009年11月30日12時43分」がタイムスタンプ情報(S5)として書込用タイムスタンプ保持部40へと送出される(S203)。
In the example of FIG. 3, the file information of the title “DEF” is acquired following the acquisition of the file information of the title “ABC” (S202), and the file information is sent to the time
書込用タイムスタンプ保持部40は新たに取得したタイムスタンプ「2009年11月30日12時43分」と、既に取得しているタイムスタンプ「2009年11月30日12時12分」とを比較し、最新タイムスタンプを更新するか否かを判断する(S205)。
The time
この場合、タイトル「DEF」のフォルダに付与されているタイムスタンプ「2009年11月30日12時43分」は、タイトル「ABC」のフォルダに付与されているタイムスタンプ「2009年11月30日12時12分」よりも新しいから、最新タイムスタンプを更新する必要がある(S205:Yes)。そこで、書込用タイムスタンプ保持部40は、当該時点で最新のタイムスタンプである「2009年11月30日12時43分」を新たな書込用タイムスタンプとして記憶する(S206)。
In this case, the time stamp “November 30, 2009 12:43” assigned to the folder “DEF” is the same as the time stamp “November 30, 2009” assigned to the folder “ABC”. Since it is newer than “12:12”, it is necessary to update the latest time stamp (S205: Yes). Therefore, the writing time
仮にタイトル「DEF」のフォルダがタイトル「ABC」のファイルよりも上にリストされており、タイトル「DEF」のフォルダのタイムスタンプ「2009年11月30日12時43分」が先に書込用タイムスタンプとして記憶されている場合には、タイトル「DEF」のフォルダに付与されているタイムスタンプ「2009年11月30日12時43分」が送られてきても、これを新たな書込用タイムスタンプとして更新する必要はない(S205:No)。 The folder with the title “DEF” is listed above the file with the title “ABC”, and the time stamp “November 30, 2009 12:43” of the folder with the title “DEF” is for writing first. If it is stored as a time stamp, even if the time stamp “November 30, 2009 12:43” sent to the folder of the title “DEF” is sent, it is used for new writing. There is no need to update the time stamp (S205: No).
書込用タイムスタンプ保持部40は、すべてのファイルについてのタイムスタンプ情報(S5)の取得が完了するまで上述の処理を繰り返す。図3に示した例の場合、5つのファイルについての情報取得が完了した時点で、書込用タイムスタンプ保持部40には、タイトル「MNO」のフォルダのタイムスタンプである「2010年04月13日16時52分」が書込用タイムスタンプとして記憶されることになる。
The writing time
FS解析部20によりすべてのファイルにつき情報の読出しが完了すると(S204:Yes)、読出終了トリガ(S6)が固定時間値加算部50へと送出される。
When reading of information for all files is completed by the FS analysis unit 20 (S204: Yes), a read end trigger (S6) is sent to the fixed time
読出終了トリガ(S6)の入力を受けた固定時間値加算部50は、書込用タイムスタンプ保持部40に対し、時間加算情報(S7)を送出する(S207)。この時間加算情報(S7)は、書込用タイムスタンプ保持部40が保持している「最新のタイムスタンプ」に所定の時間を加算して書込用タイムスタンプを更新させるための情報である。なお、「最新のタイムスタンプ」に加算する「所定の時間」は任意のものでよく、例えば、10秒や1分などの固定時間とすればよい。
The fixed time
図3に示した例の場合、上述したように、5つのファイルについての情報取得が完了した時点において書込用タイムスタンプ保持部40が保持している書込用タイムスタンプはタイトル「MNO」のフォルダのタイムスタンプである「2010年04月13日16時52分」である。従って、読出終了トリガ(S6)の入力を受けた固定時間値加算部50は、書込用タイムスタンプ保持部40に対し、「2010年04月13日16時52分」に「所定の時間」(例えば1分)を加算するように時間加算情報(S7)を送出し、書込用タイムスタンプを「2010年04月13日16時53分」に更新させる。
In the case of the example shown in FIG. 3, as described above, the write time stamp held by the write time
一方、ユーザによりSDカード300に新規データを書込む処理が不図示のタッチパネル等から行われると、当該SD書込イベントの発生情報である新規データは書込データ送出部70に入力され、書込データ(S10)としてデータ書込部60へと出力される(S208)。
On the other hand, when the process of writing new data to the
データ書込部60は、書込用タイムスタンプ保持部40から最新の書込用タイムスタンプ、つまり「2010年04月13日16時53分」を受け取り、上記書込データ(S10)に当該最新の書込用タイムスタンプを付して、SDカード300に格納する(S209)。
The
例えば、ユーザによりSDカード300への書込み処理がなされた新規データがタイトル「PQR」の楽曲データであり、その書込時刻が「2010年04月23日13時46分」であったとする。内部に計時機能を有するデータ処理装置であれば、この「2010年04月23日13時46分」を上記タイトル「PQR」の楽曲データファイルにタイムスタンプとして付与し、図4に示したような状態でデータが格納され、新規ファイルの書き込み後の記録メディア内でファイルの順序性が確保される。
For example, it is assumed that the new data that has been written to the
しかし、計時機能自体を有しないデータ処理装置や、仮に計時機能を有していても何らかの理由により当該計時機能が不全状態にあるデータ処理装置では、図5に示したようなデフォルトのタイムスタンプ「2000年01月01日00時00分」を便宜的に付してSDカード300に格納することになる。このような場合には、最新の保存データファイルであるはずのタイトル「PQR」の楽曲データファイルには最も古いタイムスタンプが付与される結果となり、新規ファイルの書き込み後の記録メディア内のファイルの順序性が確保できない。
However, in a data processing device that does not have a timekeeping function itself, or a data processing device that has a timekeeping function but is in a state of failure for some reason, the default time stamp “ “01/01/2000 00:00:00” is added for convenience and stored in the
しかし、本発明のデータ処理装置のように、外部記憶媒体の挿入を検出するメディア検出部と、外部記憶媒体のファイルシステムを解析するファイルシステム解析部と、外部記憶媒体に格納された各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部と、各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部と、新規の書込イベントが発生した際に最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部と、新規の書込イベントのファイルに所定の時間を加算した書込用タイムスタンプを付与して外部記憶媒体に格納するデータ書込部とを備える構成とすれば、上述の例では図6に示したような状態でデータが格納され、新規ファイルの書き込み後の記録メディア内でファイルの順序性が確保されることとなる。 However, like the data processing apparatus of the present invention, a media detection unit that detects insertion of an external storage medium, a file system analysis unit that analyzes a file system of the external storage medium, and each file stored in the external storage medium Timestamp detection unit for detecting time stamp information, write time stamp holding unit for storing the latest time stamp among the time stamps assigned to each file, and the latest when a new write event occurs A fixed time value adder that updates the write time stamp by adding a predetermined time to the current time stamp, and a write time stamp that adds the predetermined time to the new write event file In the above example, the data is stored in the state shown in FIG. 6 and the new data is stored in the storage medium. So that the order of the files is secured within yl recording medium after writing.
なお、ユーザにより書込み処理がなされる新規データはひとつであるとは限らない。この場合、データ書込部60は、SDカード300への書込み処理が完了する毎に書込完了トリガ(S8)を固定時間値加算部50へと送出する(S209)。そして上記ステップS207およびステップS206を繰り返す。
Note that the number of new data to be written by the user is not necessarily one. In this case, the
例えば、上述のタイトル「PQR」の楽曲データファイルの書き込みに続き、タイトル「STU」の楽曲データファイルの書き込みとタイトル「VWX」の楽曲データファイルの書き込みがこの順でなされたとすると、これら3つの新規書込みされた楽曲データファイルは、図7に示したような状態でデータが格納され、ファイルの順序性が確保される。 For example, if writing of the music data file of the title “STU” and writing of the music data file of the title “VWX” are performed in this order following the writing of the music data file of the title “PQR”, these three new The written music data file stores data in a state as shown in FIG. 7, and the order of the files is ensured.
図8に図示したように、本発明のデータ処理装置100は、SDインターフェース140により、外部記憶媒体であるSDカード300に対する読込・書込が可能であり、必要に応じて、ドライブインターフェース150を介して、ディスクドライブ400にもアクセスさせることができる。また、本発明のデータ処理装置100を構成する各要素のうち、SDカード検出部10、FS解析部20、タイムスタンプ検出部30、固定時間値加算部50、データ書込部60、書込データ送出部70はCPU110内に配置させるとともに、書込用タイムスタンプ保持部40をメモリ120内に配置させ、CPU110とメモリ120をバス130で接続するようにしてもよい。
As shown in FIG. 8, the
[第2の実施態様]
図9は、本発明の実施の形態2におけるデータ処理装置200のブロック図である。このデータ処理装置200は、上述した実施の形態1のデータ処理装置と同様に、外部記憶媒体であるSDカード300を挿入するスロット(不図示)と、該スロットへのSDカード300の挿入を検出するメディア検出部としてのSDカード検出部10と、SDカード300のファイルシステムを解析するファイルシステム(FS)解析部20と、SDカード300に格納されている各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部30と、上記の各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部40と、ユーザ操作等によりSDカード300に新規にデータを書込むイベントが発生した際に上述の最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部50と、新規の書込イベントのファイルに対して上記所定の時間を加算した書込用タイムスタンプを付与してSDカード300に格納するデータ書込部60とを備えていることに加え、内部時計80と、内部時計80に電力供給するバッテリ85と、バッテリ85から内部時計80への電力供給をモニタするバッテリモニタ90とを備えている。
[Second Embodiment]
FIG. 9 is a block diagram of
実施の形態1のデータ処理装置が備えるデータ書込部が、常に、新規の書込イベントのファイルに対して上記所定の時間を加算した書込用タイムスタンプを付与してSDカード300に格納する処理を行うのに対し、実施の形態2のデータ処理装置が備えるデータ書込部70は、バッテリモニタ90によりバッテリ85から内部時計80への電力供給が検知されない場合に、新規の書込イベントのファイルに所定の時間を加算した書込用タイムスタンプを付与して外部記憶媒体に格納する。
The data writing unit included in the data processing apparatus of the first embodiment always gives a writing time stamp obtained by adding the predetermined time to the file of the new writing event and stores it in the
そして、バッテリモニタ90によりバッテリ85から内部時計80への電力供給が検知される場合には、内部時計80の計時情報が書込用タイムスタンプとして用いられ、書込用タイムスタンプ保持部40に記憶されている最新のタイムスタンプ乃至当該タイムスタンプに固定時間値加算部50からの時間加算情報(S7)により生成される書込用タイムスタンプは用いられない。
When power supply from the
従って、バッテリ85から内部時計80へ電力供給がなされ、内部時計80が機能している場合であって、ユーザによりタイトル「PQR」の楽曲データの新規書込み処理がなされ、その時の内部時計80が示す時刻が「2010年04月23日13時46分」であったとすると、当該時刻が上記タイトル「PQR」の楽曲データファイルにタイムスタンプとして付与され、図4に示したような状態でデータが格納される。
Accordingly, when power is supplied from the
しかし、内部時計80を備えていても、バッテリ85からの電力供給が不能な状態となると、このようなタイムスタンプの付与は行えないこととなるため、既に説明したように、図5に示したようなデフォルトのタイムスタンプ「2000年01月01日00時00分」を便宜的に付してSDカード300に格納することになる。
However, even if the
そこで、実施の形態2では、内部時計80と内部時計80に電力供給するバッテリ85を備えているデータ処理装置200において、バッテリ85から内部時計80への電力供給をモニタするバッテリモニタ90とを備えることとし、データ書込部70は、バッテリモニタ90によりバッテリ85から内部時計80への電力供給が検知されない場合に、新規の書込イベントのファイルに所定の時間を加算した書込用タイムスタンプを付与して外部記憶媒体に格納する構成としている。
Therefore, in the second embodiment, the
これにより、内部時計80へのバッテリ85からの電力供給が不能な状態となった場合でも、図6に例示したような状態でデータが格納されることなり、新規ファイルの書き込み後の記録メディア内でファイルの順序性が確保されることとなる。
As a result, even when the power supply from the
その他の構成および動作については既に実施の形態1で説明したものと同様であるので、繰返しての説明は省略する。 Since other configurations and operations are the same as those already described in the first embodiment, repeated description will be omitted.
以上説明したように、本発明に係る実施の形態1におけるデータ処理装置100は、外部記憶媒体であるSDカード300を挿入するスロット(不図示)と、該スロットへのSDカード300の挿入を検出するメディア検出部としてのSDカード検出部10と、SDカード300のファイルシステムを解析するファイルシステム(FS)解析部20と、SDカード300に格納されている各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部30と、上記の各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部40と、ユーザ操作等によりSDカード300に新規にデータを書込むイベントが発生した際に上述の最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部50と、新規の書込イベントのファイルに対して上記所定の時間を加算した書込用タイムスタンプを付与してSDカード300に格納するデータ書込部60とを備えている。
As described above, the
かかる構成とすることにより、計時機能自体を有しないデータ処理装置であっても、新規ファイル(ディレクトリ)の書き込み後の記録メディア内でファイル(ディレクトリ)の順序性を確保し得るデータ処理装置を提供することが可能となる。 By adopting such a configuration, a data processing device is provided that can ensure the order of files (directories) in a recording medium after writing a new file (directory) even if the data processing device does not have a timekeeping function itself. It becomes possible to do.
また、本発明に係る第2の態様のデータ処理装置200は、上述した実施の形態1のデータ処理装置と同様に、外部記憶媒体であるSDカード300を挿入するスロット(不図示)と、該スロットへのSDカード300の挿入を検出するメディア検出部としてのSDカード検出部10と、SDカード300のファイルシステムを解析するファイルシステム(FS)解析部20と、SDカード300に格納されている各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部30と、上記の各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部40と、ユーザ操作等によりSDカード300に新規にデータを書込むイベントが発生した際に上述の最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部50と、新規の書込イベントのファイルに対して上記所定の時間を加算した書込用タイムスタンプを付与してSDカード300に格納するデータ書込部60とを備えていることに加え、内部時計80と、内部時計80に電力供給するバッテリ85と、バッテリ85から内部時計80への電力供給をモニタするバッテリモニタ90とを備えている。
Further, the
かかる構成とすることにより、計時機能が不全状態のデータ処理装置であっても、新規ファイル(ディレクトリ)の書き込み後の記録メディア内でファイル(ディレクトリ)の順序性を確保し得るデータ処理装置を提供することが可能となる。 By adopting such a configuration, a data processing device is provided that can ensure the order of files (directories) in a recording medium after writing a new file (directory) even if the data processing device has a timekeeping function in an incomplete state. It becomes possible to do.
本発明によれば、計時機能自体を有しない乃至は計時機能が不全状態のデータ処理装置であっても、新規ファイルの書き込み後の記録メディア内でファイルの順序性を確保することが可能となる。 According to the present invention, even in a data processing apparatus that does not have a timekeeping function itself or that has a timekeeping function in an incomplete state, it is possible to ensure the order of files in a recording medium after writing a new file. .
10 SDカード検出部
20 ファイルシステム(FS)解析部
30 タイムスタンプ検出部
40 書込用タイムスタンプ保持部
50 固定時間値加算部
60 データ書込部
70 書込データ送出部
80 内部時計
85 バッテリ
90 バッテリモニタ
100、200 データ処理装置
110 CPU
120 メモリ
130 バス
140 SD I/F
150 ドライブ I/F
300 SDカード
400 ディスクドライブ
DESCRIPTION OF
120
150 drive I / F
300
Claims (2)
前記外部記憶媒体のファイルシステムを解析するファイルシステム解析部と、
前記外部記憶媒体に格納された各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部と、
前記各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部と、
新規の書込イベントが発生した際に前記最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部と、
前記新規の書込イベントのファイルに前記所定の時間を加算した書込用タイムスタンプを付与して前記外部記憶媒体に格納するデータ書込部と、
を備えているデータ処理装置。 A media detection unit for detecting insertion of an external storage medium;
A file system analysis unit for analyzing the file system of the external storage medium;
A time stamp detection unit for detecting time stamp information of each file stored in the external storage medium;
A time stamp holding unit for writing that stores the latest time stamp of the time stamps assigned to each file;
A fixed time value adding unit that updates a writing time stamp by adding a predetermined time to the latest time stamp when a new writing event occurs;
A data writing unit that adds a write time stamp obtained by adding the predetermined time to the file of the new write event and stores the file in the external storage medium;
A data processing apparatus comprising:
前記内部時計に電力供給するバッテリと、
前記バッテリから前記内部時計への電力供給をモニタするバッテリモニタと、
外部記憶媒体の挿入を検出するメディア検出部と、
前記外部記憶媒体のファイルシステムを解析するファイルシステム解析部と、
前記外部記憶媒体に格納された各ファイルのタイムスタンプ情報を検出するタイムスタンプ検出部と、
前記各ファイルに付与されたタイムスタンプのうちの最新のタイムスタンプを記憶する書込用タイムスタンプ保持部と、
新規の書込イベントが発生した際に前記最新のタイムスタンプに所定の時間を加算して書込用タイムスタンプを更新する固定時間値加算部と、
前記バッテリモニタにより前記バッテリから前記内部時計への電力供給が検知されない場合に前記新規の書込イベントのファイルに前記所定の時間を加算した書込用タイムスタンプを付与して前記外部記憶媒体に格納するデータ書込部と、
を備えているデータ処理装置。 An internal clock,
A battery for powering the internal clock;
A battery monitor for monitoring power supply from the battery to the internal clock;
A media detection unit for detecting insertion of an external storage medium;
A file system analysis unit for analyzing the file system of the external storage medium;
A time stamp detection unit for detecting time stamp information of each file stored in the external storage medium;
A time stamp holding unit for writing that stores the latest time stamp of the time stamps assigned to each file;
A fixed time value adding unit that updates a writing time stamp by adding a predetermined time to the latest time stamp when a new writing event occurs;
When power supply from the battery to the internal clock is not detected by the battery monitor, a write time stamp obtained by adding the predetermined time is added to the new write event file and stored in the external storage medium. A data writing unit to
A data processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011044100A JP2012181672A (en) | 2011-03-01 | 2011-03-01 | Data processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011044100A JP2012181672A (en) | 2011-03-01 | 2011-03-01 | Data processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012181672A true JP2012181672A (en) | 2012-09-20 |
Family
ID=47012823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011044100A Withdrawn JP2012181672A (en) | 2011-03-01 | 2011-03-01 | Data processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012181672A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101710426B1 (en) * | 2015-11-30 | 2017-02-27 | 동양대학교 산학협력단 | Automated digital forensic system to identify the command history of the file |
KR20180072158A (en) * | 2016-12-21 | 2018-06-29 | 동양대학교 산학협력단 | Methode for data hiding using timestamp information |
-
2011
- 2011-03-01 JP JP2011044100A patent/JP2012181672A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101710426B1 (en) * | 2015-11-30 | 2017-02-27 | 동양대학교 산학협력단 | Automated digital forensic system to identify the command history of the file |
KR20180072158A (en) * | 2016-12-21 | 2018-06-29 | 동양대학교 산학협력단 | Methode for data hiding using timestamp information |
KR101936999B1 (en) | 2016-12-21 | 2019-01-09 | 동양대학교 산학협력단 | Methode for data hiding using timestamp information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2005277733B9 (en) | Self-labeling digital storage unit | |
CN1822004B (en) | System and method for using a file system to automatically backup a file as a generational file | |
US8250033B1 (en) | Replication of a data set using differential snapshots | |
US20080209443A1 (en) | Apparatus and method for displaying process operation | |
JP4633735B2 (en) | Information processing apparatus, integrated circuit, data transfer control method, data transfer control program, program recording medium, program transmission medium, and data recording medium | |
WO2012106969A1 (en) | Log management device and method | |
US8838528B2 (en) | Coalescing and capturing data between events prior to and after a temporal window | |
JP2008165455A (en) | Storage system with backup function | |
JP2004086823A (en) | Information processing apparatus, information processing method, and information processing program | |
JP2015090655A (en) | Support for worm cartridges realized by linear tape file system (ltfs) | |
JP2012181672A (en) | Data processor | |
JP4731325B2 (en) | Recording medium, data processing apparatus, and data processing method | |
US20080288099A1 (en) | Digital media player with improved user experience | |
CN110008105B (en) | BMC time retention method and device, electronic device and storage medium | |
US9753933B2 (en) | Electronic device and method for mounting file system using virtual block device | |
US8655463B2 (en) | Method for avoiding refreshing a database of metadata associated with digital media content | |
CN115328696A (en) | Data backup method in database | |
JP2012014574A (en) | Storage device, configuration information storage method and configuration information storage program | |
US8180738B2 (en) | Memory controller, nonvolatile storage device, and nonvolatile storage device system | |
JP5150980B2 (en) | Storage device, data backup method, and data backup program | |
JP2015132937A (en) | Information processing apparatus, information processing method and recording medium | |
JP7288375B2 (en) | ELECTRONIC DEVICE, CALCULATION METHOD AND PROGRAM | |
EP2149096A2 (en) | Digital media player and method for avoiding refreshing a database of metadata associated with digital media content and for providing an improved user experience | |
CN108763371B (en) | Exfat file system power-off protection and file detection recovery method | |
CN101036196A (en) | Method and circuit for saving power |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20140513 |